Tim Igoe's Web Design, Development and Hosting Blog

Category Archives: PHP

Xen Server API (PHP)

Posted on by Tim Igoe

Its been a while since I’ve posted, been a bit busy. However, I have recently been working with Xen Server, and as such have knocked together a quick library to help me interact with the Xen API. I have made … Continue reading

Posted in PHP, Servers, XenServer | Leave a comment

#PHPNW12 – PHP North West Conference 2012

Posted on by Tim Igoe

Having been back from my 2nd PHP conference a week now, my mind hasn’t stopped working. Having been last year, I had a little idea of what to expect, but nothing quite prepares you for how much your mind starts … Continue reading

Posted in Conferences, PHP | Tagged , | Leave a comment

Is it good to work without a framework now?

Posted on by Tim Igoe

My initial thought would be “god no”, however there are some benefits to working without one. The biggest advantage to what I’ll call stray code, without any form of framework is its easy to add to, anyone can jump in … Continue reading

Posted in PHP | Tagged , | Leave a comment

PHP 5.2 Support Ends just as developers start to adopt it

Posted on by Tim Igoe

With the recent release of PHP 5.2.14 the PHP Team has decided to end active support for this branch of PHP. This means there will be no further active development or bug fixes to this branch of PHP. Instead focus … Continue reading

Posted in PHP | Tagged | Leave a comment

PHP – Watermarking Images

Posted on by Tim Igoe

We see images all over various websites, we also see a lot of those images are watermarked with that sites ‘stamp’ (logo). This is to stop other people using the image without acknowledging the source it game from. Using PHP’s … Continue reading

Posted in PHP | Tagged , , | Leave a comment

PHP – Check Service Status

Posted on by Tim Igoe

Got multiple servers? Want to know they are still up by looking at once place? Want to give your users an easy to see status page? A quick way to test if a server or service is up is to … Continue reading

Posted in PHP | Tagged , , | Leave a comment

PHP – Autoload Includes based on Class name

Posted on by Tim Igoe

[b]Please note, this code is for PHP5 and above only.[/b] While writing lots of object orientated PHP5 code, you may find you need lots of include() or require() statements, it gets repetitive to keep writing these things in every file … Continue reading

Posted in PHP | Tagged , | Leave a comment

PHP – Stop Site using too much CPU

Posted on by Tim Igoe

Got a popular site that sometimes gets out of control with CPU usage? Need to curb it so it doesn’t spiral. With this little snippet of code in your page (near the top), it makes a quick check to see … Continue reading

Posted in PHP | Tagged , , | Leave a comment

PHP – Geolocation

Posted on by Tim Igoe

Need to know the location of your site users to target some specific data at them? Geolocation is the answer, find out the location of the IP Address that that user is coming from. This tutorial uses Geoip technology from … Continue reading

Posted in PHP | Tagged , | Leave a comment

PHP – Page Generation Time

Posted on by Tim Igoe

This little snippet of code will enable you to put a page generated in bit at the bottom of your pages. function maingetmicrotime() { list($usec, $sec) = explode(” “,microtime()); return((float)$usec + (float)$sec); } function page_start() { global $TheStartTime; $TheStartTime = … Continue reading

Posted in PHP | Tagged , | Leave a comment