Language: PHP
Basic Session Handling in PHP
Start a session, store a value, and read it on the next request.
Author:
chris
URL Encode and Decode in PHP
rawurlencode is RFC 3986; urlencode uses the older application/x-www-form-urlencoded.
Author:
chris
Parse argv in a PHP CLI Script
Hand-roll CLI parsing using \$argv when getopt is overkill.
Author:
chris
Send Email with mail() in PHP
Fire-and-forget mail via the built-in mail() — fine for low-volume.
Author:
chris
Recursive Directory Iterator in PHP
Walk a tree with RecursiveDirectoryIterator + RecursiveIteratorIterator.
Author:
chris
Hash Passwords with bcrypt
Use password_hash and password_verify — never store plaintext.
Author:
chris