the sitemap generate based on the directory structure of the site. You can easily exclude files and(or) directories.
The site map is an expandable list, similar to Windows Explorer and is accessible with or without JavaScript enabled on the user's browser. If JavaScript is not enabled, the list is simply displayed in its expanded format so all hyperlinks are visible. Directories and files are sorted alphabetical order . Note that the site map is generated from the file system, not the links contained in the pages.
this script functions by recursively calling itself to traverse the directory tree brgining at the site's root directory. It gets the file title from each file on the site and displays the page title, with a link to the file. Note that the script obtains the title of the page by extracting the text between the opening and closing title tags. That means that it only works on pages that exist (not all the variations that can be generated) and where the title is static and contained in the page.
Showing posts with label Dynamic. Show all posts
Showing posts with label Dynamic. Show all posts
Monday, April 4, 2011
Dynamic Site Map using PHP
Subscribe to:
Posts (Atom)