CodeIgniter 2’s Active Record escapes values for you, which is why it gets recommended as the safe alternative to writing SQL by hand. It escapes the arguments it…
A single autoload block cannot say “these classes exist while developing and nowhere else”, so projects either map tests/ alongside src/ and ship it, or leave the suite…
An application with a PHP file per page has its bootstrap copied into every one of them — session start, config include, database connection, the auth check somebody…
512 MB, 150 concurrent visitors, and a box that swaps before the CPU is busy. Replacing Apache and mod_php with nginx and PHP-FPM, in three stages that each…
Editing a file under plugins/woocommerce/templates/ works until the next update overwrites it, which is usually a fortnight. The template loader looks in the active theme first, so a…
APC is talked about as “the PHP cache”, and it is two caches in one extension. The opcode cache stores compiled files and requires nothing from the application.…