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…
Programming
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…
Programming
Call a JSON API from PHP with the bundled cURL extension. Run a GET and a POST, read the HTTP status code, and decode…
Programming
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…
Server Administration
Log in to a remote server without a password using SSH keys. Generate an ed25519 key pair, copy the public key to the server,…
Server Administration
Run commands on a fixed timetable with cron. This tutorial opens your crontab, explains the five time fields, schedules a nightly logged backup, and…
Server Administration
Get a free, trusted TLS certificate for your site with certbot and Let's Encrypt. Install certbot, issue the certificate against a live Apache virtual…