Ajax with PHP 5
Publisher: O'Reilly Media
Final Release Date: May 2007
Pages: 56

"Ajax with PHP 5" is a detailed overviewof how to use PHP technologies to createinteractive, fault-tolerant, and responsiveweb applications.

This Short Cut first concentrates on thefundamentals of Ajax. Then it coversserving (or providing) content formattedin both XML and JSON.

Finally, we completely immerse ourselvesin the Ajax world and write twoPHP applications that use each markuplanguage on both the client and server.

We encourage you to use the classes andexamples given to produce your own richWeb 2.0-style applications.

Product Details
About the Author
Recommended for You
Customer Reviews


by PowerReviews
oreillyAjax with PHP 5

(based on 2 reviews)

Ratings Distribution

  • 5 Stars



  • 4 Stars



  • 3 Stars



  • 2 Stars



  • 1 Stars



Reviewed by 2 customers

Displaying reviews 1-2

Back to top


Concise Summary of using JS w/ PHP

By Cousin Vinny

from Miami, FL

About Me Educator

Verified Reviewer


  • Concise
  • Easy to understand
  • Helpful examples


    Best Uses

    • Intermediate

    Comments about oreilly Ajax with PHP 5:

    Concise summary of using Javascript to interact with a PHP server via XMLHttpHTTPRequest. Contains code to support serving/consuming XML and JSON content. Could have done w/o a "Hello World" intro...

    However, this is slightly 'stale'. Much of this content can be found elsewhere. There are JS frameworks such as jQuery to support Ajax functions in a cross-browser fashion. Much of the underlying PHP code is just serving/consuming JSON/XML content, and there's tons of code and libraries for that, too.

    Contains a curious appendix briefly outlining the differences between PHP 4 & 5. Much of the Internet world has moved onto PHP 5, thanks to its extensive class (OOP) support.

    (5 of 5 customers found this review helpful)


    Great Intro on PHP and Ajax

    By Frank Stepanski

    from Undisclosed

    Comments about oreilly Ajax with PHP 5:

    Ajax has been around for awhile now or at least a few years after the exposure Google gave to it with Google Maps. There are lots of books on it now and the majority of them focus on a server side like PHP. Since PHP is free it makes the most sense to use it with Ajax. Of course knowing how to get started with Ajax is a tough one. Since Ajax is a mixture of multiple things: XHTML, CSS, and JavaScript; you already have to have a solid foundation in a few technologies to get started. Of course learning Ajax involves accessing files on the server and a technology like PHP can do everything you need as far as retrieving data from files and databases.

    But do you need to buy multiple books to get started? Nah. This shortct is good enough for the beginners.

    It starts out with an overview of what Ajax provides the developer compared to other technologies that require "refreshing" the page to get new results to the user. Then gives the user a standard function in JavaScript that does most of the work.

    The most common data that is used with Ajax is XML since it is a standard and most server-side techologies (PHP, ASP, ASP.NET, JSP) can create them for you with various modules/functions. Basically you will have data from a database, retrieve it and create an .xml file from it and then use Ajax to update your web page automatically.

    The section (Serving XML - pg 12 - 24) goes throgh this process with code snipets of PHP and various functions to create the XML and serve it to the page. No matter what else you do with Ajax, that is the basics you will need.

    The other type of data format that is common with Ajax is JSON, which is a format coming from object literal in JavaScript. It is popular because it does not have as big an overhead as XML and is easier to parse with JavaScript since it is native to the language. This is reviewed with great detail in pages 24 - 32 (Serving JSON).

    The author then goes back to XML and JSON with other techniques using JavaScript libraries such as JQuery. This shortcut goes into more detail that you think and cuts through lots of the "BS" with that other books do just to fill pages up.

    If you want the simple facts, the functions and the explanations, then this is a great introduction to get you started with Ajax. It also teaches you a great deal about PHP and the XML modules that are available (SimpleXML).

    Basically you need a solid understanding of the basics of JavaScript with an uinderstanding of PHP or a similiar programming langugae and your good to go! A great buy!

    Displaying reviews 1-2

    Back to top

    Buy 2 Get 1 Free Free Shipping Guarantee
    Buying Options
    Immediate Access - Go Digital what's this?
    Ebook:  $9.99
    Formats:  DAISY, ePub, Mobi, PDF