Skip to content

Phil's Blog

The thoughts and ramblings of an Engineer

About 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 Logo
22 December, 2011 Blog

PHP: Find the last day of the month

In PHP you can pass the t format character to the date() function in order to get the number of days

Continue reading
22 December, 2011 Blog

Netgear GS748T Heatsink Pins – Design Flaw

We have had, in the office, a GS748T for a while now. This is a mid-range 48 port managed switch

Continue reading
21 December, 2011 Blog

Using ImageMagick to create thumbnails for the web

You can use ImageMagick’s convert tool to resize images on the command line in a Linux, BSD or Windows environment.

Continue reading
11 December, 2011 Blog

Kwik Fit Rugby: Avoid at all costs

The Short Story Kwik-Fit have featured on more episodes of than I care to count. They have been criticized for inflated

Continue reading
PHP Logo
6 December, 2011 Blog

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 reading
PHP Logo
6 December, 2011 Blog

PHP – 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 reading
PHP Logo
24 November, 2011 Blog

Horribly 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 reading
PHP Logo
22 November, 2011 Blog

PHP – 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 reading
22 November, 2011 Blog

Solved! 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 reading
PHP Logo
16 November, 2011 Blog

PHP – 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 reading

Posts pagination

«Previous Posts 1 … 10 11 12 13 Next Posts»
WordPress Theme: Maxwell by ThemeZee.