The idea for this script came from Andrew Kennedy who had the idea to list all his pages after sorting them in date order. Therefore the most recently modified page would be at the top. I took his script and messed around with it quite a lot to produce what we have now.
Features include
What it does is find all the html files below a certain point (in my case my public_html directory, but this is command line specified) and then it decides for each one if I really want to display it (taking into account the contents of the .ignore file) if I do want it it's added to an array and the time it was last modified is found out using stat(). If the file has not been modified since the title cache was updated then the title is retrieved from that, otherwise it is retrieved from the file. If you are displaying in last modified order all the files are then sorted by their last modified times. And a simple html list is created of the now ordered list. Otherwise if you are displaying in directory structure then a slightly more complicated HTML page is created. All this information is sent to a file in a space that httpd can write and then a simple location: is sent out to redirect the browser at the right file! EASY!
Check out the source for what's new or mail me if you have any questions.
This script was written a long time ago and since then I have not had need to use it - as such it is now even more unsupported than any of my other CGI scripts - I will be happy to answer questions etc, but please don't expect me to fix it