How To Detect A Search Engine Spider/Crawler With PHP

I was tasked with the job of writing a small PHP script today that detects whether a search engine spider is crawling a page of your site. There are a few ways to go about it. The challenging thing about the script is that there are so many spiders on the web. The script I [...]

PHP Code To Check If A Directory Is Empty

While dealing with files and directories in PHP you will most likely at some point want to check if a folder/directory is empty. To do this, you need to write a script that does the check. There are two ways of doing this. The first is supported in PHP 4 and 5 only and the [...]

Some Useful PHP File And Folder Functions

I have spent the whole day today dealing with files and folder structures with PHP and even though I have dealt with this quite a bit in the past, I still found that I needed to double check some of the functions on PHP.net. So I thought I would create a quick little reference guide [...]

Running A PHP Script In The Background

I am busy developing a WordPress plugin that will automatically update your WordPress plugins in the background without you ever having to click a button. There will be various settings and you can even select plugins that you do not want to update automatically, but anyway, that is besides the point. Because the process of [...]