Web Development Tutorials
//

Category: Programming

Programming

Force a File Download in PHP

Send the Content-Disposition and Content-Type headers that make a browser save a file instead of opening it, then stream the bytes with readfile() —…

August 3, 2026

Programming

Match Text With Regular Expressions in PHP

Find, capture, validate, and replace text with PHP's preg_match(), preg_match_all(), and preg_replace(). Work one string through four common jobs using named groups and anchored…

August 3, 2026

Programming

Make an HTTP Request in PHP with cURL

Call a JSON API from PHP with the bundled cURL extension. Run a GET and a POST, read the HTTP status code, and decode…

August 2, 2026

Programming

Set and Read Cookies in PHP

Store a small value in the visitor's browser with setcookie() and read it back from the $_COOKIE array. Build a page that remembers a…

August 2, 2026

Programming

Format Dates and Times in PHP

Format, parse, and compare dates with PHP's built-in DateTime class. format() prints any layout, createFromFormat() reads non-standard strings, and diff() measures the gap between…

July 28, 2026

Programming

Register a Custom Taxonomy in WordPress

Group your WordPress content your own way, beyond the built-in categories and tags. register_taxonomy() on the init hook creates a hierarchical Topic taxonomy —…

July 28, 2026