Back to catalog
Backend developmentBeginner

PHP from scratch: server-side basics

From your first echo to working with a database

PHP from scratch: server-side basics

About this course

A hands-on course for complete beginners. We cover PHP syntax, forms and requests, connecting to a database, and the typical beginner mistakes that get websites hacked.

Course curriculum

  1. Getting to know PHP

    How server-side code works

    • 1.What PHP is and where it runs12 min
    • 2.Your first program and output10 min
  2. Syntax and data structures

    Variables, arrays, functions

    • 1.Data types and arrays18 min
    • 2.Functions and scope15 min
    • 3.Handling form data20 min
  3. Database and security

    PDO, prepared statements, common holes

    • 1.Connecting to a database with PDO16 min
    • 2.SQL injection and prepared statements22 min