开发者

where to put the server side php file?

开发者 https://www.devze.com 2023-01-24 02:24 出处:网络
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 con

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

精彩评论

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

关注公众号