Enhanced Lighttpd directory generator using mod_dirlisting
This project is an enhanced directory listing script for Lighttpd. I built it for a friend who wanted to be able to sort the directory listing (which isn’t possible with the default). This script is also great to look at if you are trying to figure out how to make your own directory generator.
Dependencies: Lighttpd, mod_dirlisting, PHP
Version: 0.2
Download: dir-generator.zip
Extra capabilities: Sorting for name, size, modification time, and file type
Installation
For the most part, you can follow the instructions listed On the Lighttpd wiki. Just be sure that you put dir-generator.php in your web root and add the following to your lighttpd.conf file:
dir-listing.activate = "enable" index-file.names = ( "/dir-generator.php" )
If you have any further questions, please contact me.

JontySewell.net » Advanced directory listings with lighttpd and php wrote,
[...] I start, I'd like to make it clear that 95% of this code came from Evan Fosmark, who also had the original idea. I've just mashed together some different bits of code [...]