Two PHP include files to make easy web site indexing and navigation
Archive - Originally posted on "The Horse's Mouth" - 2008-06-21 14:02:26 - Graham Ellis

How to look after these documents? Well - for the initial stages I've used two simple PHP files that can be called up from the home page (or any other page, come to think of it!)
The first script - (see code here) - generates links to all the subdirectories which have their own home pages, and it references them by the subject of the index page.
The second script - (see code here) - generates links to all the individual files within other specified subdirectories.
Together, the two provide a quick and neat set of navigation tools to allow users to find the document the need quickly and easily on a site of modest size, and provide the site owner / maintainer with a structure in which he can add in extra resources / documents without having to go through a procedure to update all the links and indexes.
