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 Data: Working with Text and Numbers

    1. Text

    2. Numbers

    3. Variables

    4. Chapter Summary

    5. Exercises

  3. Chapter 3 Logic: 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 Groups of Data: 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 Groups of Logic: Functions and Files

    1. Declaring and Calling Functions

    2. Passing Arguments to Functions

    3. Returning Values from Functions

    4. Understanding Variable Scope

    5. Enforcing Rules on Arguments and Return Values

    6. Running Code in Another File

    7. Chapter Summary

    8. Exercises

  6. Chapter 6 Data and Logic Together: Working with Objects

    1. Object Basics

    2. Constructors

    3. Indicating a Problem with Exceptions

    4. Extending an Object

    5. Property and Method Visibility

    6. Namespaces

    7. Chapter Summary

    8. Exercises

  7. Chapter 7 Exchanging Information with Users: 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

  8. Chapter 8 Remembering Information: 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. A Complete Data Insertion Form

    7. Retrieving Data from the Database

    8. Changing the Format of Retrieved Rows

    9. Retrieving Form Data Safely

    10. A Complete Data Retrieval Form

    11. Chapter Summary

    12. Exercises

  9. Chapter 9 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

  10. Chapter 10 Remembering Users: 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

  11. Chapter 11 Talking to Other Websites and Services

    1. Simple URL Access with File Functions

    2. Comprehensive URL Access with cURL

    3. Serving API Requests

    4. Chapter Summary

    5. Exercises

  12. Chapter 12 Debugging

    1. Controlling Where Errors Appear

    2. Fixing Parse Errors

    3. Inspecting Program Data

    4. Handling Uncaught Exceptions

    5. Chapter Summary

    6. Exercises

  13. Chapter 13 Testing: Ensuring Your Program Does the Right Thing

    1. Installing PHPUnit

    2. Writing a Test

    3. Isolating What You Test

    4. Test-Driven Development

    5. More Information About Testing

    6. Chapter Summary

    7. Exercises

  14. Chapter 14 Software Engineering Practices You Should Be Aware Of

    1. Source Control

    2. Issue Tracking

    3. Environments and Deployment

    4. Scaling Eventually

    5. Chapter Summary

  15. Chapter 15 Handling Dates and Times

    1. Displaying the Date or Time

    2. Parsing a Date or Time

    3. Calculating Dates and Times

    4. Working with Timezones

    5. Chapter Summary

  16. Chapter 16 Package Management

    1. Installing Composer

    2. Adding a Package to Your Program

    3. Finding Packages

    4. Getting More Information on Composer

    5. Chapter Summary

  17. Chapter 17 Sending Email

    1. Swift Mailer

    2. Chapter Summary

  18. Chapter 18 Frameworks

    1. Laravel

    2. Symfony

    3. Zend Framework

    4. Chapter Summary

  19. Chapter 19 Command-Line PHP

    1. Writing Command-Line PHP Programs

    2. Using PHP’s Built-in Web Server

    3. Running a PHP REPL

    4. Chapter Summary

  20. Chapter 20 Internationalization and Localization

    1. Manipulating Text

    2. Sorting and Comparing

    3. Localizing Output

    4. Chapter Summary

  21. Appendix Installing and Configuring the PHP Engine

    1. Using PHP with a Web-Hosting Provider

    2. Installing the PHP Engine

    3. Modifying PHP Configuration Directives

    4. Appendix Summary

  22. Appendix 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. Chapter 13