PHP Directory Listing Script
Back in 2008 we created the original version of our popular directory listing script. Since then we’ve released three new versions, addressing a number of known issues. In 2015 we completely rebuilt the script from scratch, introducing some handy new features and improvements.
The PHP Directory Listing Script is a highly configurable script, allowing you to simply upload one file into a web-accessible directory, and it’ll be turned into a well formatted, mobile friendly directory browser.
With the release of version 4, we’ve got some great new features, including:
- Full mobile browser support.
- The ability to upload multiple files and restrict the allowed file-types.
- Support for restricting access to the script by either password or IP Address whitelisting (ideal if you want only yourself and clients to have access!).
- Support for creating new directories and sub-directories.
- Upload zip files and extract them automatically, with the option to delete the zip file after it’s been extracted.
- Optionally hide certain file types, names or extensions, as well as directories.
- Sort file listings by name, size or last modified date.
Finally, the last feature is that the Directory Listing Script now runs as a single file, weighing in at less than 400kb. This means the script runs faster, and is extremely easy to use!
All of the new features can be enabled and disabled individually, so whether you’re looking for a full file manager, or a simple list of downloads, the PHP Directory Listing script has you covered.
To run the PHP Directory Listing Script on your website, you’ll need to be running PHP 5.3 or above and have the GD2 library installed. If you wish to enable the unzip support, you’ll also need the ZipArchive php extension installed.
To download the script please click here. The ZIP file contains all you need to run the script. To setup the script please see the top of index.php.
To install the PHP Directory Listing Script, simply extract the zip file and open up the index.php file. Inside you’ll see a number of options that you can alter. Once you’ve set your options, simply upload the file into your directory and then browse to it from the web. You should now be up and running!
We’re always open to feedback for improvements and suggestions so please leave any ideas in the comments section below and we’ll do our best to incorporate them into a future update.