Linux Today: Linux News On Internet Time.

Apache Today: Web Automation: Dynamic Directory Indexing

Jun 02, 2000, 16:17 (0 Talkback[s])
(Other stories by Matthew Keller)

[ Thanks to Kevin Reichard for this link. ]

"If you're like me, you probably loathe updating directory index pages. You add a new file or folder to your Web site and then you have to find other pages that you should link from and update them--not to mention the toils of updating all of those pages if the page name/location changes!"

"I solve this problem, quite simply, by creating directory index scripts using Perl. The largest member of this class of scripts is a directory on my private Web server that has folders containing pages talking about my projects. My entire Web site is logically organized (logical to me, anyways) using directories to house and nest information, and my "projects" page is no different."

"From a filesystem structure standpoint, every directory in my projects directory contains a different project. Every project directory has an index HTML file. Every index HTML file has a title. Keeping these rules in mind, it is easy to write a short Perl script that makes ones' life much easier."

Complete Story

Related Stories: