Tim Igoe's Web Design, Development and Hosting Blog

Category Archives: PHP

Newer posts →

PHP – Stop Site using too much CPU

Posted on by TimIgoe

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 TimIgoe

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 TimIgoe

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 Newer posts →