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 development, PHP, servers | Leave a commentIf you’ve found the Click to Activate ‘feature’ that has been added to Internet Explorer annoying, first question is why are you using Internet Explorer? Firefox ( www.getfirefox.com ) is a safer browser. Avoiding the IE vs Firefox flame war … Continue reading
Posted in Javascript | Tagged javascript | Leave a commentThe always useful tool to find your current IP Address, wherever you are on the internet. Accurate most of the time, apart from when you are behind a proxy server, in this case, it tries to guess your IP address. … Continue reading
Posted in Misc | Leave a commentNeed 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 development, PHP | Leave a commentThis 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 PHP, servers | Leave a comment ← Older posts