Handling Errors and Exceptions in PHP
The difference between errors and exceptions in PHP, how try/catch/finally works, when to throw your own, and why you must never show…
Try: python lists, javascript functions, syntax error, first project
Every guide on the site, newest first. Explanations, projects and fixes written in plain English.
The difference between errors and exceptions in PHP, how try/catch/finally works, when to throw your own, and why you must never show…
Use the browser’s built-in validation first, then add JavaScript for the parts it cannot do — with error messages screen readers actually…
Writing PHP functions, default and named arguments, type declarations, and using callables so one function can behave differently for different callers.
Fetch live data and display it properly — including the loading and error states most tutorials skip. Built so it works with…
How PHP receives form data, why you must never trust it, and the validation, escaping and redirect pattern that makes a form…
A command-line expense tracker that saves to JSON, groups spending by category and prints a monthly report. Extends the to-do list with…
The array errors beginners hit most — IndexError, modifying while looping, the copy trap — plus the changes that actually make list…
A Python script that tidies a messy downloads folder by file type. Covers pathlib, dictionaries and — most importantly — how to…
Reading and writing files, handling paths that work on every machine, and the encoding trap that only appears on someone else’s computer.
Your page is blank, half-rendered, or nothing like the file you wrote. An ordered checklist from most to least likely cause, with…
How to save data in the browser so it survives a refresh: setItem and getItem, storing objects with JSON, and the corrupted-value…
Every array method worth knowing, grouped by what you are trying to do, with a one-line example each and a clear table…
The fastest way to improve is to read one guide, then build the thing it describes. Start with the basics, or jump straight to a project.