Logo Jit-learn Start free
Primer / Resources / About

Learn the PHP basics before the work gets complicated.

This is a primer. Jit-PHP shows practical skills, small examples, and job-ready patterns.

Primer
Resources
About

About PHP

The real skills of 2025-2030 are: Can you make the server do useful work before the page reaches the browser?

PHP is server-side glue for real websites.

Forms, sessions, includes, templates, files, mail, databases, login checks, admin pages, and business workflows can all be handled clearly with PHP.

This is a primer. Jit-PHP shows the practical skills behind server-side web logic, not just terms copied from a list.

Part 1

Procedural PHP

Learn how PHP pages run from top to bottom, how functions organize work, and how real server-side programs handle forms, files, sessions, and data.

✓ Lesson 1 Free • No Login Required

Your First PHP Program

See what happens when the server runs PHP and sends HTML back to the browser.

Question: What does PHP do?
Answer: Runs on the server.

Variables That Remember Things

Variables let PHP hold names, numbers, choices, totals, and other working information.

$name = "Rick";
$total = 25;

Making Decisions In PHP

PHP uses if, else, comparisons, and logic to choose what should happen next.

if ($age >= 18) { }

Repeating Work In PHP

Loops let PHP process lists, rows, files, form fields, and repeated jobs.

foreach ($contacts as $contact)

Functions Build Programs

Functions keep one job in one place so procedural PHP stays readable and fixable.

function clean_text($value)

Breaking PHP Into Files

Includes let one program use shared headers, menus, config files, and function libraries.

require_once "functions.php";

Forms Talk To PHP

Learn how browser form data reaches PHP through GET and POST.

$_POST["email"]

Saving Information With PHP

PHP can save data in files, CSV, JSON, or a database so information survives after the request ends.

file_put_contents()

Sessions Build State

HTTP forgets. Sessions help PHP remember a user across more than one request.

session_start();
$_SESSION["user"]

Build A Complete Procedural PHP App

Put requests, variables, decisions, loops, functions, includes, forms, files, and sessions together.

index.php → add.php → save.php

moc.rt-tij [ta] troppus
(customization available)