A journey through Japan with PHP

Japan Journey is the name of the case study that features in many chapters of PHP Solutions: Dynamic Web Design Made Easy by David Powers (friends of ED, November 2006, ISBN: 1590597311). All the images, stylesheets, and code will be available from the downloads section of the friends of ED website once the book has been published (20 November).

Random image

Every maiko should have one—a mobile, of course

The page title, menu, and copyright notice on every page of the site are generated by PHP, dramatically reducing the amount of maintenance. Updating just a single file propagates the changes throughout the site.

The code that displays a random image and associated caption on the home page is also generated by PHP.

Take a look at the other pages to see the sort of techniques featured in PHP Solutions—extracting the first two sentences of articles from a database, with dynamic links to the full article; an online gallery with a built-in navigation system that displays thumbnail images in columns as well as rows; and an intelligent contact form that checks all required fields and prevents email header injection attacks. See the Table of Contents for full details of each chapter.