Latest stories

Configure Imagemagick with PHP on Windows

Since you can't simply get Imagemagick from a respository and have the legwork done for you, this is a great guide to follow. Once I've got a spare minute I will revise this for Zend Server (CE) as you can skip a few steps with that.

Get column names from a Zend_Db_Table object

If you need to get access to the column names of a Zend_Db_Table object (filtering a list of column names so that you discard any that don't match up, for example) then as found on StackOverflow you can do the following:
$table->info(Zend_Db_Table_Abstract::COLS);
Which of course works from within the object itself, so you could write a method such as:

Mac OS X Apache not starting properly

Whilst trying to figure out why Zend Server CE wasn't working properly on my Mac (again...) I realised that something was wrong with the version of Apache shipped with OS X. Luckily Chris Oliver found the problem in the Apache control script.

Installing PHPUnit with Zend Server CE for Windows

Open this with a web browser and save it to somewhere under your web root as a *.php file: Execute it using the PHP CLI: php go-pear.php Follow the installation instructions, making sure you change paths to point to C:\Program Files\Zend\Zend Server\ bearing in mind that the PHP executable by default lives at C:\Program Files\Zend\Zend Server\bin\php.exe (and the installer will expect to find php...

Drupal migration SQL fixes

If you are migrating from a single instance of Drupal to a multi-site installation, you may encounter a problem or two along the way in terms of certain things breaking as they aren't where they used to be. Since Drupal is almost solely reliant upon the database during it's bootstrap process, more often than not if something is misconfigured you can end up with the white screen of death (which...

Back in the capital

So after a hectic month of moving stuff down, waiting for stuff to arrive, building heck-knows how much Ikea furniture, waiting for various maintenance repairs and filling out endless forms... I'm back in London. I would say I feel relieved but I just feel tired more than anything! It is nice to be back though, if just for the next few years. If anything the best part is having a job that is...

Lack of PHP default timezone

It is not safe to rely on the system's timezone settings.

If you see this thrown at the E_STRICT level by PHP, then you need to let PHP know which timezone the server is currently running in, by either running the following function in PHP:

date_default_timezone_set('Europe/London');

... where Europe/London is a supported timezone or setting it in php.ini:

date.timezone = "Europe/London"