Books & Videos

Table of Contents

  1. Chapter 1 Introduction to PHP

    1. PHP History

    2. Advantages of PHP

    3. Getting Help

    4. Getting Certified

    5. PHP Resources

  2. Chapter 2 Installing PHP

    1. Installing on Windows

    2. Installing on Unix

    3. Testing Your Configuration

    4. System Configuration

  3. Chapter 3 The PHP Interpreter

    1. Running PHP Scripts

    2. Extending PHP

    3. PEAR

    4. Abnormal Script Termination

  4. Chapter 4 The PHP Language

    1. The Basics of PHP

    2. Variables

    3. Whitespace

    4. Heredoc

    5. Brief Introduction to Variable Types

    6. Code Blocks

    7. Opening and Closing Code Islands

    8. Comments

    9. Conditional Statements

    10. Case Switching

    11. Loops

    12. Infinite Loops

    13. Special Loop Keywords

    14. Loops Within Loops

    15. Mixed-Mode Processing

    16. Including Other Files

    17. Functions

  5. Chapter 5 Variables and Constants

    1. Types of Data

    2. True or False

    3. Strings

    4. Integers

    5. Floats

    6. Automatic Type Conversion

    7. Checking Whether a Variable Is Set: isset()

    8. Variable Scope

    9. Variable Variables

    10. Superglobals

    11. Using $_ENV and $_SERVER

    12. References

    13. Constants

    14. Arrays

  6. Chapter 6 Operators

    1. Arithmetic Operators

    2. Assignment Operators

    3. String Operators

    4. Bitwise Operators

    5. Comparison Operators

    6. Incrementing and Decrementing Operators

    7. Logical Operators

    8. Some Operator Examples

    9. The Ternary Operator

    10. The Execution Operator

    11. Operator Precedence and Associativity

  7. Chapter 7 Function Reference

    1. Undocumented Functions

    2. Handling Non-English Characters

  8. Chapter 8 Object-Oriented PHP

    1. Conceptual Overview

    2. Classes

    3. Objects

    4. Properties

    5. The 'this' Variable

    6. Objects Within Objects

    7. Access Control Modifiers

    8. Object Type Information

    9. Class Type Hints

    10. Constructors and Destructors

    11. Copying Objects

    12. Comparing Objects with == and ===

    13. Saving Objects

    14. Magic Methods

    15. Static Class Methods and Properties

    16. Helpful Utility Functions

    17. Interfaces

    18. Dereferencing Object Return Values

  9. Chapter 9 HTML Forms

    1. What Does It Mean to Be Dynamic?

    2. Designing a Form

    3. Handling Data

    4. Splitting Forms Across Pages

    5. Validating Input

    6. Form Design

    7. Summary

  10. Chapter 10 Cookies and Sessions

    1. Cookies Versus Sessions

    2. Using Cookies

    3. Using Sessions

    4. Storing Complex Data Types

  11. Chapter 11 Output Buffering

    1. Why Use Output Buffering?

    2. Getting Started

    3. Reusing Buffers

    4. Stacking Buffers

    5. Flushing Stacked Buffers

    6. Reading Buffers

    7. Other OB Functions

    8. Flushing Output

    9. Compressing Output

    10. URL Rewriting

  12. Chapter 12 Security

    1. Security Tips

    2. Encryption

  13. Chapter 13 Files

    1. Reading Files

    2. Creating and Changing Files

    3. Moving, Copying, and Deleting Files

    4. Other File Functions

    5. Checking Whether a File Exists

    6. Retrieving File Time Information

    7. Dissecting Filename Information

    8. Handling File Uploads

    9. Locking Files with flock()

    10. Reading File Permissions and Status

    11. Changing File Permissions and Ownership

    12. Working with Links

    13. Working with Directories

    14. Remote Files

    15. File Checksums

    16. Parsing a Configuration File

  14. Chapter 14 Databases

    1. Using MySQL with PHP

    2. PEAR::DB

    3. SQLite

    4. Persistent Connections

    5. MySQL Improved

  15. Chapter 15 Regular Expressions

    1. Basic Regexps with preg_match() and preg_match_all()

    2. Regexp Character Classes

    3. Regexp Special Characters

    4. Words and Whitespace Regexps

    5. Storing Matched Strings

    6. Regular Expression Replacements

    7. Regular Expression Syntax Examples

    8. The Regular Expressions Coach

  16. Chapter 16 Manipulating Images

    1. Getting Started

    2. Choosing a Format

    3. Getting Arty

    4. More Shapes

    5. Complex Shapes

    6. Outputting Text

    7. Loading Existing Images

    8. Color and Image Fills

    9. Adding Transparency

    10. Using Brushes

    11. Basic Image Copying

    12. Scaling and Rotating

    13. Points and Lines

    14. Special Effects Using imagefilter()

    15. Interlacing an Image

    16. Getting an Image's MIME Type

  17. Chapter 17 Creating PDFs

    1. Getting Started

    2. Adding More Pages and More Style

    3. Adding Images

    4. PDF Special Effects

    5. Adding Document Data

  18. Chapter 18 Creating Flash

    1. A Simple Movie

    2. Flash Text

    3. Actions

    4. Animation

  19. Chapter 19 XML & XSLT

    1. SimpleXML

    2. Transforming XML Using XSLT

  20. Chapter 20 Network Programming

    1. Sockets

    2. HTTP

    3. Sending Mail

    4. Curl

  21. Chapter 21 Distributing Your Code

    1. Cross-Platform Code 1: Loading Extensions

    2. Cross-Platform Code 2: Using Extensions

    3. Cross-Platform Code 3: Path and Line Separators

    4. Cross-Platform Code 4: Coping with php.ini Differences

    5. Cross-Platform Code 5: Checking the PHP Version with phpversion() and version_compare()

  22. Chapter 22 Debugging

    1. The Most Basic Debugging Technique

    2. Making Assertions

    3. Triggering Your Own Errors

    4. Testing with php_check_syntax()

    5. Source Highlighting

    6. Handling MySQL Errors

    7. Exception Handling

    8. Backtracing Your Code

    9. Custom Error Handlers

    10. Custom Exception Handlers

    11. Using @ to Disable Errors

    12. phpinfo()

    13. Output Style

  23. Chapter 23 Performance

    1. Write Your Code Sensibly

    2. Use the Zend Optimizer

    3. Use a PHP Code Cache

    4. Compress Your Output

    5. Don't Use CGI

    6. Debug Your Code

    7. Use Persistent Connections

    8. Compile Right

  1. Colophon