Skip to content
FLAVIO COPES
flaviocopes.com
2026

The PHP Guide

By

Learn PHP from scratch: setup, first programs, handling HTTP requests, forms, cookies, sessions, errors, Composer, and deploying PHP applications.

~~~

PHP powers a huge portion of the web. WordPress, Laravel, and countless custom applications run on it.

It gets dismissed a lot, but PHP is a pragmatic, productive language. It was built for the web from day one. You write a file, put it on a server, and it works. That directness is still one of its biggest strengths.

The fundamentals here don’t age: how requests work, how forms are processed, how sessions keep users logged in. These are the mechanics of the web itself, expressed in PHP.

This page is your map to the PHP content on this site.

Where to start

Two posts get you from nothing to running code:

PHP and the web

This is where PHP shines. These posts cover the request-response cycle and everything around it:

My advice: read these in order. Forms build on requests, sessions build on cookies.

Errors and files

Things go wrong, and programs need to touch the filesystem:

The ecosystem

Modern PHP is built on packages and needs a home in production:

Once you’re comfortable with plain PHP, the natural next step is a framework. I wrote a full learning path for that in the Laravel guide.

Go deeper

I collected all of this material in the free PHP Handbook. It’s a structured walk through the language and its web features, downloadable as PDF or EPUB.

All posts on this topic are in the PHP tag archive.

Tagged: PHP · All topics
~~~

Related posts about php: