Learn Intermediate PHP
Take PHP beyond single scripts. Store and query data with PDO, show it safely as HTML, read and write files and CSV, work with JSON and web APIs, and set up PHP on your own machine.
- Intermediate level
- 4 modules
- 23 lessons
- 146 tasks and questions
Syllabus
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
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
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
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