PHP Directory Listing Script

10 August, 2016

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.

System Requirements

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.

Written by Ash

Having co-founded Evoluted in 2006, Ash’s passion for the digital world and obsession with client satisfaction has since helped the company grow into one of Yorkshire’s leading digital agencies. An advocate of ROI-focused delivery and a firm believer in the use of bespoke technology, he was nominated for ‘Business Person of the Year’ at the 2017 Sheffield Business Awards.

Up next…
Drumroll, Please
10 August, 2016


14th January 2019 at 6:46am


Fantastic script and loving it! Just wanted to ask a quickie - So I am using your script to display a list of folders. A few of the the folders have php/mysql applications.

My questions is simple, when I click on a folder, i want the system to open, currently what it does is that it just shows me the files within that directory. Do you have a parameter or setting that changes this behaviour?

Post reply

Leave a comment

Replying to: - Cancel