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…
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…
Programming
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…
Programming
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 —…
Programming
Give the WordPress post editor an extra field of your own — a short "key takeaway" saved with each post. A small plugin adds…
Programming
Keep a user logged in across page loads with PHP's built-in session functions. session_start() opens the session, the $_SESSION array holds the data, and…