How to delete all files in a directory using PHP.
How to switch on PHP error reporting directly in the code, and a quick overview of how error reporting works and the options available.
How to zip a whole directory and then automatically start the zip file downloading using PHP.
As of PHP 5.5 the original MySQL extension will be deprecated. This article looks at the extension and it's alternatives.
Keep your copyright year automatically up to date with this short PHP snippet.
Replace the first occurrence of a character in PHP using preg_replace.
Adding your email address to one of your web pages makes it easy for spam bots to pick up that address and, well, spam you. In this code snippet we'll look at converting each character to its ASCII equivalent so that bots can't read it, but to your visitors it looks exactly the same.