A collection of articles and snippets I've collected over the years.
December 19, 2009
Be careful when doing any kind of calculations with numbers that have been passed through PHP's number_format function as they can lead to unexpected results. The problems lie with the thousands...
November 4, 2009
This is nothing amazing, just a bit of fun. One of the more useful features of the upcoming PHP6 is full unicode support throughout. However, did you know that PHP supports unicode already and...
August 13, 2009
I often find that I need to fix an IP address using Ubuntu Server and then have to search for the correct format for /etc/network/interfaces. For record, here it is:
July 30, 2009
As a website developer I have a need to use multiple operating systems at the same time. I have a laptop that dual boots Windows Vista and Ubuntu 9.04 and I use this to test websites in Internet...
July 30, 2009
How to create and use a stored procedure in MySQL: To call this use the 'call' keyword and pass the parameters:
July 17, 2009
Please allow time for this to load. Size is 18mb.
July 9, 2009
To install the PDFLib functionality you need to do the following (on an Ubuntu box). Then install PDFLib using pecl: This will ask for the path to PDFlib headers. Select '1' and enter: Then hit...
June 19, 2009
Here's how to draw an arc using PHP Imagick Produces:
June 18, 2009
Here's how to cache an object using Zend_Cache: Note: The reason that "automatic_serialization" is set to false and then I manually serialize and unserialize is that...
June 9, 2009
On an Ubuntu System:
June 8, 2009
I've never liked using Rhythmbox (Gnome's default music player) as I found previous versions to be slow, buggy and crashed a lot. I'm trying to keep my system as close as possible to the default...