PHP

Posts about the server side scripting language PHP

PHP Unconference Europe 2011 - Get Your Tickets Now

Friday, December 24, 2010 - 12:43

Next years PHP Unconference Europe (PHPunEU) will be held in Manchester on the 19th and 20th of February at TheStudio. The 2010 event saw 260 developers converge on a location in the north of Germany and gained a lot of attention within the German speaking PHP community. With the event being so near to me I decided that I must go along, especially as the tickets are only £40. The support of the PHPNW user group was apparently very useful in selecting Manchester as the location as they were able to give support and advice to the organisers about possible venues within the city.

Category: 

Converting To And From Decimal Time In PHP

Monday, November 29, 2010 - 14:00

To convert a time value into a decimal value representing the number of minutes can be useful for certain calculations. The following function takes a time as a string of hh:mm:ss and returns a decimal value in minutes.

Category: 

PHPNW10: A Review

Monday, October 11, 2010 - 08:48

This weekend saw the 3rd PHPNW conference and being a PHP developer, working in Manchester, it would be inexcusable for me not to attend :). After missing my train and pouring my first coffee of the day into my conference pack it wasn't the best of starts. However, I still managed to turn up in plenty of time so I didn't miss any of the talks and got to say hello to the people I know from the PHPNW user group and some who I met at the PHPNW conference in previous years.

Category: 

PHP TestFest UK 2010 And Testing PHP

Wednesday, September 29, 2010 - 23:16

The UK PHP TestFest this year was held at MadLab in Manchester on the 11th September. I was one of the 12 people who went along to learn about testing the PHP language. So I thought that I would collate some of the things that we went through during the session.

Category: 

Print Image With Fixed Aspect Ratio In PHP

Monday, September 20, 2010 - 10:33

When displaying images added by users it is quite often necessary to resize them in order that they fit into a specific area of the page. Not doing this can cause problems with the images breaking the page layout. The trouble is that if you resize the image absolutely you tend to squash and distort it.

The following function can be used to calculate the width and height of an image to the correct aspect ratio, which will preserve the contents when printed out. This function makes use of the getimagesize() function, which is available as part of the GD library in PHP.

Category: 

PHP Version Number

Saturday, June 26, 2010 - 00:55

Different functions and options are always being added to PHP. Although new versions generally don't create much backward compatibility issues it is usually prudent to write production code that you know will work on servers running a slightly older version of the language.

Category: