News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

IBM developerWorks:
Developing PHP the Ajax way, Part 1 - Getting started
June 01, 2006 @ 06:44:56

IBM developerWorks has posted this new tutorial, the first part in a two-part series looking at the development of a PHP/Ajax application using Saxjax.

Asynchronous JavaScript and XML (Ajax), is arguably the most popular new Web technology. In this two-part "Developing PHP the Ajax way" series, you will create a simple photo album as an online Web application, entirely in PHP and the Simple Ajax Toolkit (Sajax). You'll begin by writing a simple photo album using the standard method of PHP development and later apply Sajax to make it an active Web application.

There's no hesitation on their part - they just jump right in and start in with the image pager class to handle the display of a number of images at a time. The files are stored in a directory on the local filesystem (as they should be) and pulling them in is just a matter of reading the directory. They integrate in basic back/forward and the ability to enlarge the images and the basic gallery is complete.

Now, it's time for the fun stuff - they take the processing that the PHP script was doing to grab the files/display them/etc and move it to the backend, replacing it with a simple Ajax call to another PHP file to grab the image information to display. They even finish off this part of the series with a method for implementing metadata for the images, an XML file with a summary of the file's attributes, date taken - anything you want, really.

0 comments voice your opinion now!
develop ajax saxjax simple photo album tutorial part1 develop ajax saxjax simple photo album tutorial part1


blog comments powered by Disqus

Similar Posts

Evan Sims' Blog: Web APIs by Example, Part I: Twitter

Rob Allen's Blog: Using your own View object with Zend_Application

DevShed: Enhancing Dynamic Twitter Signature Images with PHP

DevShed: Paginating Blog Entries with Code Igniter

Codewalkers.com: New Things on the Tutorial Front (Pagination & Ajax)


Community Events











Don't see your event here?
Let us know!


component language unittest introduction symfony2 hhvm facebook install opinion podcast hack release application security code framework composer example series package

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework