PHP Solutions: Dynamic Web Design Made Easy, Third Edition

PHP Solutions book coverNow in its third edition, PHP Solutions: Dynamic Web Design Made Easy has helped thousands of web designers add dynamic features to their websites using PHP, the most popular server-side technology. The book has been completely revised to bring it up to date with PHP 5.6, clarifying explanations, and eliminating errors.

PHP Solutions is a cross between a code cookbook and reference. It's equally suitable for web developers and designers with no previous knowledge of PHP, as well as those who've already gained some experience. You put PHP to work straight away through a series of related projects, such as creating a navigation menu that is automatically updated in every page of a site just by editing a single file. Step-by-step instructions tell you not only what to do, but also explain why, making it easier to adapt the code to suit your own needs.

For newcomers to PHP—and those who feel in need of a refresher—Chapter 3 acts as a crash course in PHP basics. The first half of the chapter gives a high level overview of what you need to know before starting to handle PHP code. The second half goes into more detail, and is intended as a handy reference when you're not sure how a particular feature works.

What you'll learn

The third edition of PHP Solutions covers the following topics:

Each chapter builds on the knowledge gained from the previous one. If you read them in sequence, by the end of the book you'll have a solid grounding in PHP and MySQL/MariaDB. Readers with previous experience of PHP and MySQL can pick and choose the projects that interest them most.

The third edition of PHP Solutions requires a minimum of PHP 5.4.

What's new in this edition?

The third edition of PHP Solutions follows the same structure as the previous version, but it brings the content up to date with PHP 5.6, which was released in August 2014. Because hosting companies are often slow to upgrade the version of PHP that they offer, I’ve made PHP 5.4 the minimum version for the code used in this book. PHP 5.4 made some important changes, introducing a simplified array syntax and dropping support for safe mode and “magic quotes”.

The biggest changes are to the custom classes for uploading files and creating image thumbnails in Chapters 6 and 8. They now use namespaces to avoid naming clashes with other third-party code. More important, the class definitions have been extensively rewritten to make them more efficient. Another significant change is the use of the new password hashing functions in Chapters 9 and 17. These functions weren’t introduced until PHP 5.5, but the book explains how to emulate them in PHP 5.4 by including the password_compat library in your scripts.

The chapters on working with a database have been reorganized to make them easier to follow. I’ve also strengthened the explanation of prepared statements, using both MySQL Improved (MySQLi) and the database-neutral PHP Data Objects (PDO).

Exercise files for the third edition


Corrections to the Second Edition

Updates and Corrections to the First Edition

Other Books & Videos by David Powers

Introducing PHP

Up & Running with phpMyAdmin

Responsive Design with Bootstrap and Dreamweaver CC 2015

PHP for Web Designers

Beginning CSS3

Dreamweaver CS6: Learn by Video

Adobe Dreamweaver CS5 with PHP: Training from the Source

PHP Object-Oriented Solutions

Buy from one of these online stores

Free 7-day trial

Books & Videos by David Powers

PHP SolutionsBeginning CSS3Dreamweaver CS6: Learn by VideoDreamweaver CS5.5: Learn by VideoDreamweaver CS5.5 for MobileDreamweaver CS5 with PHP