8 lessons · 64 min Beginner

PHP Course — Web plumbing

Build dynamic server-side websites in 8 lessons. Interactive editor and AI exercises.

FR EN
Progress 0/8
1

Introduction to PHP

Discover PHP, the server-side language that powers 77% of the web

6 min
2

Install and run PHP

Install PHP and run your first site with the built-in server: php -S localhost:8000

7 min
3

Variables and arrays

$variable, types, strings, indexed and associative arrays

8 min
4

Functions and loops

Functions, parameters, return, for/foreach loops and built-in functions

7 min
5

Forms and GET/POST

Retrieve user data with $_GET/$_POST and validate it

8 min
6

Sessions and cookies

Manage memory between pages with sessions and cookies

7 min
7

SQL databases

Connect PHP to a database with PDO, CRUD and prepared statements

10 min
8

Understanding the HTTP request

How the web really works: request/response, methods and CRUD, status codes, headers, and the Network tab

11 min

What you will learn

Understand client-server architecture and PHP's role

Process forms and validate user data

Manage sessions and cookies to authenticate users

Connect PHP to a SQL database with PDO

Start lesson 1

Free · No signup · 6 minutes