Pow
Pow

Reputation: 1367

where to put the server side php file?

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

Answers (2)

zod
zod

Reputation: 12427

Create your own MVC :)

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

Upvotes: 0

Jason McCreary
Jason McCreary

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

Related Questions