To begin understanding the server-side techniques and principles used in AJAX, in the first exercise of this chapter, you'll create a PHP script that uses PHP's DOM functions to dynamically create XML output, which is then read by the client.
Remember that we assume you have basic knowledge of PHP. If you need additional assistance with the PHP code, we recommend you google "php tutorial", which will lead you to lots of interesting resources, including the official PHP tutorial at http://php.net/tut.php. If you enjoy learning by practice, check out Cristian Darie's PHP e-commerce books, such as Beginning PHP and MySQL E-Commerce: From Novice to Professional, Second Edition.
In the previous chapters, you learned how to use DOM and Javascript on the client side to:
Manipulate the HTML page while you are working on it
Read and parse XML and JSON documents received from the server
Create new XML and JSON documents
On the server side, you can use the DOM and PHP in order to:
Compose...