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, which was originally published by friends of ED in November 2006. The second edition of the book was published in November 2010, bringing the code up to date with PHP 5.2 and 5.3. The design of the case study is slightly different in the new edition, but the content remains the same.
Maiko—trainee geishas in Kyoto
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 book's main page for a more detailed description.