Table of Contents
Introduction
Chapter 1: Advanced PHP Programming
Code Structure and Documentation
Function Recursion and Static Variables
References and Functions
PERL-Compatible Regular Expressions
Chapter 2: Basic Object-Oriented Programming
Defining a Class
Creating an Object
Creating Constructors
Object Inheritance
Using Class Functions Without Instances
Serializing Objects
Destroying Objects
Chapter 3: Developing Web Applications
Catching Exceptions
Using PEAR's HTML_QuickFOrm
Modularizing a Web Site
Error Logging and Reporting
Browser Detection
Chapter 4: Database Concepts
Database Design and Normalization
Storing Sessions in a Database
Storing BLOBs in a Database
Using Prepared Statements
Database Encryption
Working with Bound Variables
Chapter 5: Security
Validating Forms
Validating Forms with JavaScript
Encryption with Mcrypt
HTTP Authentication
Web Server Security
Shared Server Security
Encorporating Captcha with PEAR
Using PEAR Auth
Chapter 6: Advanced OOP
Inheritance
Access Control
Polymorphism
Encapsulation
Overloading
Chapter 7: E-Commerce
Creating the Database
Administration
Showing the Products Online
Writing a Shopping Cart
Handling Commerical Transactions
Chapter 8: Image Generation
Creating a Simple Image
Using TrueType Fonts
Creating a Database-Driven Graph
Saving and Building on Existing Images
Chapter 9: Creating PDFs
Creating a Simple PDF
Adding Text to PDFs
Drawing Shapes
Using Images
Creating Multiple-Page PDFs
Chapter 10: XML and PHP
What is XML?
XML Syntax
Document Type Definitions
Parsing XML With PHP
XML Error Handling
Chapter 11: Networking with PHP
Accessing Other Web Sites with PHP
Using fsockopen()
Creating RSS Feeds
AJAX
Using Curl
Understanding Streams
Chapter 12: PHP and the Server
Establishing a Cron
Task Manager on Windows
Compressing Files with PHP
Using COM with PHP
PHP on Windows
Running Two Versions of PHP with Apache
Chapter 13: Using PHP's Command Line Interface
Basic Syntax
Working with Command Line Arguments
Redirecting Output
Chapter 14: Improving PHP Performance
Installation Options
Configuration Options
Using an Op Cache
Coding Suggestions
Database Suggestions
Using Benchmarks
Using Profiling
Performing Unit Tests
Appendix A: Installation
Installing PHP with Apache on Linux
Installing PHP on Windows with Xitami
Installing PHP on Mac OS X with Apache
Running Two Versions of PHP with Apache
Appendix B: Databases
Database Applications
SQL
MySQL Resources
Other Resources
Appendix C: General Resources
PHP-Specific Sites
Additional Libraries
Security
Other Resources