Sean Kelly (skel[email protected]), Web Application Developer, ID Society has started the series of articles on the IBM developerWorks titled Developing PHP the Ajax way. In this first part Sean explain how to easily create a simple photo album entirely in PHP and the Simple Ajax Toolkit (Sajax).
In this article, you will create a simple photo album using two methods: a traditional Web application and a Sajax-powered application. You will write an album in PHP that reads the contents of a directory, showing the user a table of thumbnails. If the user clicks a thumbnail, the image will expand to full size. Since you will be writing a traditional application, every click will be a new HTTP request, with parameters being passed as part of the URL.