What is considered a "best practice" for the design of a set of PHP scripts which service AJAX requests? What is considered a "best practice" for the design of a set of PHP scripts which service AJAX requests? database database

What is considered a "best practice" for the design of a set of PHP scripts which service AJAX requests?


on the serverside i would reommend a restful approach.

and for the client side javascript i would recommend jQuery ($().ajax())

and it probably would't hurt to code after the principles of MVC