Monthly Archives: May 2007

UK Petition: Ban the Bog Troll

Officially known as bathroom attendants, the bog troll lurks in bars and clubs, interrupting customers’ casual hygiene routine by obstructing sinks and hand-dryers and extorting money for performing such mundane tasks as turning on taps and distributing paper towels. The

Posted in Rant

Upgrading WordPress using mysqli

Out-of-the-box WordPress assumes it’s going to be talking to a MySQL database using PHP’s original mysql extension instead of the newer mysqli extension (true up to WordPress 2.1.3 at least). If for some reason you need to run using mysqli,

Posted in PHP

A handy PHP debug function

Like most developers, I often find it useful to spit out a few messages in the middle of a PHP script – especially when I’m debugging some problems. Sadly, after only a few months our pristine code-base has become spotted

Posted in PHP