Reputation: 1367
I'm using simple apache http linux mandriva server. 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.
Upvotes: 1
Views: 1333
Reputation: 72991
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.
Upvotes: 1