Free Trial

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


PHP is a simple yet powerful open-source scripting language for creating dynamic web content. The millions of web sites powered by PHP are testament to its popularity and ease of use. PHP is used by both programmers, who appreciate its flexibility and speed, and web designers, who value its accessibility and convenience. Programming PHP is an authoritative guide to PHP 4 and is filled with the unique knowledge of the creator of PHP, Rasmus Lerdorf. This book explains PHP language syntax and programming techniques in a clear and concise manner, with numerous examples that illustrate both correct usage and common idioms. The book also includes style tips and practical programming advice that will help you become not just a PHP programmer, but a good PHP programmer. Programming PHP covers everything you need to know to create effective web applications with PHP. Contents include:

  • Detailed information on the basics of the PHP language, including data types, variables, operators, and flow control statements

  • Separate chapters on the fundamental topics of functions, strings, arrays, and objects

  • Coverage of common PHP web application techniques, such as form processing and validation, session tracking, and cookies

  • Material on interacting with relational databases, such as MySQL and Oracle, using the database-independent PEAR DB library

  • Chapters on generating dynamic images, creating PDF files, and parsing XML files with PHP

  • Advanced topics, like creating secure script, error handling, performance tuning, and writing your own C language extensions to PHP

  • A handy quick reference to all the core functions in PHP and all the standard extensions that ship with PHP

Subscriber Reviews

Average Rating: 0 out of 5 rating Based on 0 Ratings

No Subscribers have provided a review for this book.

Table of Contents



The publisher has provided additional content related to this title.


Visit the catalog page for Programming PHP

  • Catalog Page

Visit the errata page for Programming PHP

  • Errata

Download the supplemental electronic content for Programming PHP

  • Supplemental Content