Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


When it comes to creating dynamic web sites, the open source PHP language is red-hot property: used on more than 20 million web sites today, PHP is now more popular than Microsoft's ASP.NET technology. With our Cookbook's unique format, you can learn how to build dynamic web applications that work on any web browser. This revised new edition makes it easy to find specific solutions for programming challenges.

PHP Cookbook has a wealth of solutions for problems that you'll face regularly. With topics that range from beginner questions to advanced web programming techniques, this guide contains practical examples -- or "recipes" -- for anyone who uses this scripting language to generate dynamic web content. Updated for PHP 5, this book provides solutions that explain how to use the new language features in detail, including the vastly improved object-oriented capabilities and the new PDO data access extension. New sections on classes and objects are included, along with new material on processing XML, building web services with PHP, and working with SOAP/REST architectures. With each recipe, the authors include a discussion that explains the logic and concepts underlying the solution.

Subscriber Reviews

Average Rating: 3.75 out of 5 rating Based on 4 Ratings

"unusable" - by mamb on 25-MAR-2013
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
I added this book to my 10 books bookshelf and was immediately disappointed by the shallowness o fit's Internationalization and Localization chapter, which contains a meager 3 paragraphs on gettext which explains absolutely nothing about how to use it at all.
Report as Inappropriate

Table of Contents



The publisher has provided additional content related to this title.


Visit the catalog page for PHP Cookbook, 2nd Edition

  • Catalog Page

Visit the errata page for PHP Cookbook, 2nd Edition

  • Errata

Download the supplemental electronic content for PHP Cookbook, 2nd Edition

  • Supplemental Content