The Short Story Kwik-Fit have featured on more episodes of than I care to count. They have been criticized for inflated
Continue readingAbout Me
I’m an Engineer, working for Vonage (an Ericsson company). I write about stuff that interests me - primarily Networks, Software Engineering, VoIP and Electronics. It exists in the hope that someone may learn from my thoughts and ramblings. I'm on GitHub! I'm also currently fairly active on Twitter and LinkedIn.
PHP – Accurately detecting the type of a file
When files are being uploaded, you cannot rely on the the sends. This data is entirely under the control of
Continue readingPHP – Why you should use the Factory Method Pattern and how you should do it
This article assumes you’re using PHP version 5.3 or above. If you are not, you should note that “the PHP
Continue readingHorribly amazing PHP – check if you’re on the last iteration of a foreach loop
The code is so horrible, it’s gone a full circle and become amazing once again. It’s a method of finding
Continue readingPHP – Converting bytes to a readable format
The following function takes in a number of bytes and the number of decimal places required in the output and
Continue readingSolved! phpMyAdmin cannot start session without errors
This was a bit of a ridiculous error. It occurred after a PHP upgrade to 5.2.17 running under Apache with
Continue readingPHP – Obtain the maximum allowed file upload size
This was actually remarkably difficult to do, in terms of the volume of code required. It uses the fact that
Continue readingCabling your house with cat5e… Geeky or essential?
When I bought my house, I wired it with cable for data networking. I ran 2 cables to each of
Continue readingSolved! Debian Wheezy – SASL LOGIN authentication failed: no mechanism available
I’m not sure why I ever run an `apt-get upgrade` on Debian as I usually spend the next week fixing
Continue readingReading a signed 64 bit integer from a file with PHP
This may be a ridiculous way to do this but I couldn’t think of anything better at the time of
Continue reading