Most PHP listing scripts are hideous monsters, producing overwrought HTML listings full of styles and preview systems. This script aims to keep things simple, providing a single table with only the information that would be included on a normal directory listing — name, filesize, mime type and mtime.
This script does provide some preview features, but they are all client-side, and implemented in JavaScript. This means they disable themselves gracefully where a client does not have JavaScript support. Previews also provide full back/forward ability using the history API in modern browsers.
Download the PHP by renaming this text file.
Simply pop the file where you want and set the variables at the top of the file:
I highly recommend integrating the script using css, and adding a header etc...