PHP has a handy function called filesize() which can help us display how big a file is. It does this in bytes by default, but with a bit of tinkering we can easily convert this into kilobytes or megabytes....
Learn MoreI wanted to list a directory in PHP. At the same time, I wanted to make sure only files are listed – not subdirectories or dot directories. More specifically, I only wanted to include files with the...
Learn MoreImagine you have a HTML form with several values and two buttons at the bottom. One could say “Do This” and the other “Do That”. How do you know which one was pressed by the user?...
Learn MoreI’ve just realised how (relatively) easy it is to make PHP create a ZIP Archive from a directory and its sub directories. Previously I had relied on the Linux Shell Command zip or tar to do this which...
Learn MoreI’ve just released Version 1.3 of ZEN DASH and thought a quick video demonstration is in order – and here it is: In this podcast I will show you how to use ZEN DASH for WordPress and explain how...
Learn More