Books & Videos

Table of Contents

  1. Chapter 1 Orientation and First Steps

    1. PHP's Place in the Web World

    2. What's So Great About PHP?

    3. PHP in Action

    4. Basic Rules of PHP Programs

    5. Chapter Summary

  2. Chapter 2 Working with Text and Numbers

    1. Text

    2. Numbers

    3. Variables

    4. Chapter Summary

    5. Exercises

  3. Chapter 3 Making Decisions and Repeating Yourself

    1. Understanding true and false

    2. Making Decisions

    3. Building Complicated Decisions

    4. Repeating Yourself

    5. Chapter Summary

    6. Exercises

  4. Chapter 4 Working with Arrays

    1. Array Basics

    2. Looping Through Arrays

    3. Modifying Arrays

    4. Sorting Arrays

    5. Using Multidimensional Arrays

    6. Chapter Summary

    7. Exercises

  5. Chapter 5 Functions

    1. Declaring and Calling Functions

    2. Passing Arguments to Functions

    3. Returning Values from Functions

    4. Understanding Variable Scope

    5. Chapter Summary

    6. Exercises

  6. Chapter 6 Making Web Forms

    1. Useful Server Variables

    2. Accessing Form Parameters

    3. Form Processing with Functions

    4. Validating Data

    5. Displaying Default Values

    6. Putting It All Together

    7. Chapter Summary

    8. Exercises

  7. Chapter 7 Storing Information with Databases

    1. Organizing Data in a Database

    2. Connecting to a Database Program

    3. Creating a Table

    4. Putting Data into the Database

    5. Inserting Form Data Safely

    6. Generating Unique IDs

    7. A Complete Data Insertion Form

    8. Retrieving Data from the Database

    9. Changing the Format of Retrieved Rows

    10. Retrieving Form Data Safely

    11. A Complete Data Retrieval Form

    12. MySQL Without PEAR DB

    13. Chapter Summary

    14. Exercises

  8. Chapter 8 Remembering Users with Cookies and Sessions

    1. Working with Cookies

    2. Activating Sessions

    3. Storing and Retrieving Information

    4. Configuring Sessions

    5. Login and User Identification

    6. Why setcookie( ) and session_start( ) Want to Be at the Top of the Page

    7. Chapter Summary

    8. Exercises

  9. Chapter 9 Handling Dates and Times

    1. Displaying the Date or Time

    2. Parsing a Date or Time

    3. Dates and Times in Forms

    4. Displaying a Calendar

    5. Chapter Summary

    6. Exercises

  10. Chapter 10 Working with Files

    1. Understanding File Permissions

    2. Reading and Writing Entire Files

    3. Reading and Writing Parts of Files

    4. Working with CSV Files

    5. Inspecting File Permissions

    6. Checking for Errors

    7. Sanitizing Externally Supplied Filenames

    8. Chapter Summary

    9. Exercises

  11. Chapter 11 Parsing and Generating XML

    1. Parsing an XML Document

    2. Generating an XML Document

    3. Chapter Summary

    4. Exercises

  12. Chapter 12 Debugging

    1. Controlling Where Errors Appear

    2. Fixing Parse Errors

    3. Inspecting Program Data

    4. Fixing Database Errors

    5. Chapter Summary

    6. Exercises

  13. Chapter 13 What Else Can You Do with PHP?

    1. Graphics

    2. PDF

    3. Shockwave/Flash

    4. Browser-Specific Code

    5. Sending and Receiving Mail

    6. Uploading Files in Forms

    7. The HTML_QuickForm Form-Handling Framework

    8. Classes and Objects

    9. Advanced XML Processing

    10. SQLite

    11. Running Shell Commands

    12. Advanced Math

    13. Encryption

    14. Talking to Other Languages

    15. IMAP, POP3, and NNTP

    16. Command-Line PHP

    17. PHP-GTK

    18. Even More Things You Can Do with PHP

  1. Appendix A Installing and Configuring the PHP Interpreter

    1. Using PHP with a Web-Hosting Provider

    2. Installing the PHP Interpreter

    3. Installing PEAR

    4. Downloading and Installing PHP's Friends

    5. Modifying PHP Configuration Directives

    6. Appendix Summary

  2. Appendix B Regular Expression Basics

    1. Characters and Metacharacters

    2. Quantifiers

    3. Anchors

    4. Character Classes

    5. Greed

    6. PHP's PCRE Functions

    7. Appendix Summary

    8. Exercises

  3. Appendix C Answers To Exercises

    1. Chapter 2

    2. Chapter 3

    3. Chapter 4

    4. Chapter 5

    5. Chapter 6

    6. Chapter 7

    7. Chapter 8

    8. Chapter 9

    9. Chapter 10

    10. Chapter 11

    11. Chapter 12

    12. Appendix B

  4. Colophon