I'm building a site that has a site map. Nothing new there.
What I'd like to do is to have this page be automatically generated so that the site map really represents the contents of the directory structure on my site.
The site's very organized. It's tree-structured just as the site map will be.
I could build an Admin page that you use to upload files/delete files that catalogs the site's structure in a database then builds the sitemap.php page based on that info, but I'd rather have the PHP page just look at the directory of the site (in the 4 folders I specify) and build the site map that way. Then when different people add their pages into the site, no one has to mess with the sitemap.php.
Any ideas out there to get me started? Thanks for any input.
-John