Right, and so maybe I'm not being clear as to what I'm thinking. Here's my current application framework for my web application:
XHTML ---> JavaScript (AJAX) ---> PHP (like a web service) ---> MySQL/XML/etc. At the top level, where my XHTML is, Is there a reason for me to use PHP? I don't need any content management systems, and I require JavaScript to be enabled (or I might switch a bunch of it to server side JavaScript). Does this paint a clearer picture of my question? Nathan On Jan 23, 2008 10:57 AM, thebigdog <[EMAIL PROTECTED]> wrote: > > Recently I have been working on a web application. As a preference I > have > > chosen to use php to develop it. It uses AJAX to retrieve data, and so > I am > > wondering to myself, if I can use ajax in an html page and retrieve data > > that way, then aside from the backend pieces, is there a reason for me > to > > use php in my app? Does anybody have an opinion or example of when and > > where they used php in an ajaxian application? > > ajax is a technology to make requests to the server asynchronously. This > means > that you still need a backend technology that can provide the data for > you. Most > ajax technologies require the data in some format that it can deal with > (common > ones include xml and json). So your backend system needs to provide this > data in > that format. PHP is a backend scripting lang that you can use to fulfill > that > requirement. Other technologies include ruby, python, perl, java, and cgi > to > name a few. > > -- > ray > > > -- Nathan Lane _______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
