Home :

Developing standards-compliant dynamic sites

PHP Web Development with Dreamweaver MX 2004Allan Kent kicks off the book with three chapters offering a broad overview of the three main technologies being used: PHP, MySQL and Dreamweaver MX 2004. Then Rachel Andrew of the Web Standards Project takes an in-depth look at designing with web standards, something made considerably easier by many of the improvements in Dreamweaver MX 2004.

Using CSS and valid XHTML is not just a fad as far as dynamic websites are concerned; it's a necessity. Server-side languages like PHP are very fussy about correct coding. One comma or quote out of place, and your website can come crashing down like a pack of cards.

Covers includes, error detection, and building your own server behaviors

Then it's down to business, building database-driven pages. Allan looks at the various server behaviors built into Dreamweaver MX 2004 that make this process much simpler. I follow up with a detailed look at code reuse, utilizing Dreamweaver templates and library items, but most importantly building your own code library and creating your own custom-built functions in PHP. I take a hard look at the pros and cons of templates, and compare them with PHP includes.

Allan then offers advice on other Dreamweaver time-saving devices—extensions, telling you not only how to install those created by others, but also showing you how to build your own. It's not as difficult as it sounds! My second chapter deals with the less glamorous, but nevertheless essential subject of what to do when things go wrong—not only error detection and troubleshooting, but plenty of tips on how to avoid errors in the first place.

Detailed case study

Finally, the crowning glory of the book (well, I think so, because I wrote it!)—a really detailed case study, looking at how a real-life content management system is put together. It's a mini-book in itself (120 pages long), showing how to plan the database tables, and building the administrative back-end with solid procedures to ensure that only valid content is entered into the database. In the process, you build several new server behaviors that can be used again and again in different sites. When putting the front-end together, I look at some advanced SQL queries drawing information from four separate tables. The finished site could be used as the basis for a club, an online product catalogue, or a personal blog.

What readers say

For those looking for a soup to nuts book that covers using Dreamweaver to build dynamic PHP pages, you have found your book.

Jack Herrington

The chapter on debugging and error handling is, for me, the true gem of this book.

Josh Leslie

Chapter 9 is worth the money for the book alone.

A Kineard

Buy from one of these online stores

Buy as an e-book

Also available in Spanish

Spanish edition

Published by Anaya Multimedia, Madrid (ISBN: 84-415-1802-5).