Syllabus

  1. 01Connecting to DatabasesConnect to a database with PDO and exceptions, fetch rows, defend against SQL injection with prepared statements and validation, change data with transactions, and render results as escaped HTML.8 lessons
    1. 01Connecting with PDO
    2. 02Querying and Fetching
    3. 03Prepared Statements
    4. 04SQL Injection and Validation
    5. 05Changing Data and Transactions
    6. 06Displaying Data as HTML
    7. 07Project: Book Club Database
    8. 08Module Quiz: Databases
  2. 02File HandlingRead and write whole files and streams, lock and append logs, handle failures strictly, count bytes versus characters, manage files and folders, and import and export CSV data.7 lessons
    1. 01Reading and Writing Whole Files
    2. 02Streams: fopen, fgets and fwrite
    3. 03When File Functions Fail
    4. 04Managing Files and Folders
    5. 05Reading and Writing CSV
    6. 06Project: Guestbook Export
    7. 07Module Quiz: File Handling
  3. 03JSON and Web APIsEncode and decode JSON, understand how web APIs work, consume an API response, and send JSON responses of your own.5 lessons
    1. 01Working with JSON
    2. 02How Web APIs Work
    3. 03Calling an API from PHP
    4. 04Sending JSON Responses
    5. 05Module Quiz: JSON and Web APIs
  4. 04PHP on Your Own MachineRun PHP outside the browser-based editor: install it locally, use the built-in server, manage dependencies with Composer, and structure a small database-driven site.3 lessons
    1. 01Running PHP Locally
    2. 02A Database-Driven Site
    3. 03Module Quiz: PHP on Your Own Machine