7 lessons · 57 min Beginner

PHP Course — Web plumbing

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

FR EN
Progress 0/7
1

Introduction to PHP

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

6 min
2

Variables and arrays

$variable, types, strings, indexed and associative arrays

8 min
3

Functions and loops

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

7 min
4

Forms and GET/POST

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

8 min
5

Sessions and cookies

Manage memory between pages with sessions and cookies

7 min
6

SQL databases

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

10 min
7

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