开发者

where to put the server side php file?

I'm using simple apache http linux mandriva serve开发者_如何学运维r. I have created an ajax page to store some data on MySQL database in server. I have also written one server side php file. I'm confused actually where should I put my server side php file (e.g. in root or ..)?

Thanks.


If you want to call it directly with AJAX, then it will need to be web accessible. Exactly where you put it in your site structure is up to you.

I'd suggest a sub directory - res, services, etc - to keep things organized if you have several of these files.


Create your own MVC :)

http://www.phpied.com/ajax-mvc/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜