Web Development Tutorials
//

Tag: PHP

Programming

Hash and Verify Passwords in PHP

Hash and verify passwords in PHP with password_hash() and password_verify(). Store a secure bcrypt hash, check logins against it, and upgrade old hashes automatically…

July 26, 2026

Server Administration

Enable mod_rewrite in Apache

Enable mod_rewrite in Apache to turn ugly query strings into clean URLs. Load the module, allow .htaccess overrides, then add one RewriteRule so a…

July 25, 2026

Programming

Get the Last Inserted ID With PHP PDO

Get the last inserted ID with PHP PDO by calling lastInsertId() right after an INSERT. This tutorial captures the AUTO_INCREMENT id of a new…

July 24, 2026

Programming

Resize an Image in PHP

Resize an image in PHP with the GD extension. Load the source, create a smaller canvas, and copy the pixels across with imagecopyresampled() to…

July 23, 2026

Programming

Use Transactions With PHP PDO

A PDO transaction groups several database writes into one all-or-nothing unit. This tutorial builds the classic bank-transfer example: the debit and credit either both…

July 22, 2026

Programming

Read A CSV File In PHP

Read a CSV file in PHP with fgetcsv(), which splits each row into an array and keeps quoted fields containing commas intact. Pair it…

July 20, 2026