« About me

riches designer, developer, gamer

Category Archives: PHP

Face Detection with PHP

A very useful piece of PHP code that will highlight any pictures where a face has been detected. Heres the first piece of PHP code you will need, it would be best to make this an include:

December 1, 2010

Show Email in IMAP Mailbox with PHP (Retrieve Email)

How difficult is it to open a IMAP mailbox in PHP and show folder names and email headers, well, no difficult at all.

April 7, 2010

Find a Users Language in PHP

It can be very useful to determine the users set language when visiting your website. The determined result can be used for many different applications, from targeted adverts and country specific affiliate links to country specific wording or images. The code behind … Continue reading

December 13, 2009

PHP Arrays Primer

New to PHP and want to learn what arrays are and how to use them? Then this is the article for you! What is an Array? An array is a list of items with keys, normally the key is a … Continue reading

Generate a Random Hex Colour in PHP

Often required for testing this simple function will generate a random hexadecimal colour every time. Copy this piece of code into your page:

December 1, 2009

PHP Variables and Echo Primer

PHP is highly scalable and will most likely be installed on a Linux of Unix web server by default, so below we introduce the basics of using this language. This is by no means definitive, for full documentation you should visit … Continue reading

November 26, 2009

Distance Between Postcodes in Good Olde British Miles and PHP

Often you may need to calculate the rough distance between postcodes for such uses as delivery or catchment areas, here is a simple (and free) way to do just that. First of (legally) obtain a database that contains the ordnance survey coordinates against … Continue reading

November 20, 2009

Add a Watermark to Images on the Fly

Adding a watermark to an image is quite easy with PHP and has many applications, such as branding or copy protection. So after the jump see just how easy it is, and let us know your thoughts. First of make … Continue reading

November 19, 2009