It was thus said that the Great Jules Richardson once stated:
Al Kossow wrote:
I suppose
(or is it like that already?) bitsavers needs some form of database
This is difficult to do the way that it is hosted and mirrored currently. Right
now, it is just a directory heirarchy with a couple of files I have to manually
edit and upload every time I add something (IndexByDate and Whatsnew in the pdf
directory) There are no equivalent files in the 'bits' directory.
Yes, I was originally thinking that in the current situation some PHP code
could do the work of the webserver's directory listing code and incorporate
the description field from Whatsnew.txt when people view the site via HTTP.
However, looking at the file it's 278KB in size and over 4000 lines - I
suspect the burden of searching that file to match file paths to
descriptions might be a little too great.
Some sort of background process to run a couple of times a day and update
per-directory equivalents of Whatsnew.txt could work I suppose; any "dir
listing" code will then only need to operate on a small file. Such an
approach "feels" messy though, but might be the only option without a full
db.
Apache has the ability to associate descriptions to filenames for the
directory indexes it can produce (if you don't have an index.html file, and
you allow directory listings to be produced). Look up the "AddDescription"
directive, and such directives can be added to a .htaccess file in each
directory.
-spc (And why does it feel messy?)