Summary
- You build a practice copy of Table Bay Online's shop on your own computer, in plain PHP with SQLite, one part per module, and you test only it, or systems you own or have written permission to test.
- Each later module builds a part securely, checks each control with a positive check, and reviews short fragments of a first draft beside their fixes.
- The course needs PHP 8.4 or later with the pdo_sqlite extension. On 10 November 2026 the newest releases were 8.5.12 and 8.4.27.
- PHP's built-in server, started with
php -S localhost:8000 -t public, is for development only and must never serve a live site. - Only
public/is the web root. The code, the database and later the uploads sit outside it, so no browser can fetch them, and the router answers 404 to every other address. - The skeleton is sound from the start: prepared statements for every query,
e()on every printed value, an HttpOnly, SameSite=Lax session cookie in strict mode, a form token on every form that changes something, and changes only by POST. - The Network tab shows each request's method, address, status and headers, View Page Source shows the HTML as sent, and the Storage or Application tab shows the session cookie's settings.
- Your baseline records what the shop sends now, including the security headers it does not send yet, so later modules can show what changed.
tools/checks.phpruns positive checks against your own shop, and every later module adds checks for its own controls.