www.KevinBurkholder.com

Getting Work Done Through People

Getting People Done Through Work

www.KevinBurkholder.com
Strengths Based Performance Management
EarthAsylum Consulting
The EarthAsylum Leadership Circle
The EarthAsylum Fusion Network
Thursday, July 24, 2008

eac_sitemap.class.php PHP Site Map Generator

eac_sitemap.class.php

Source Code

Download eac_sitemap.zip

Live Example

Interested in using this software in your project? Contact Kevin at KBurkholder@EarthAsylum.com
Creative Commons License This work is licensed under the Creative Commons GNU-LGPL License.
Licensing & Registration
 
Donations are greatly appreciated and help fund further development and maintain the LGPL licensing.

Overview

eac_sitemap.class is an easy to use PHP utility that generates site maps, site clouds, directory listings, and files using the documents found on your web server.

eac_sitemap.class can create site maps ...

  1. As a typical site map showing page links and descriptions.
    This format uses the <title> tag for the link and the <meta description> tag for the description.
    It can also parse the file to build a table of contents based on a given regular expression.
  2. As a directory listing.
    This format shows each folder as a parent expandable/colapsable directory.
    It uses the index file within the folder for the title.
  3. As a link cloud.
    This format uses the file name as the link (after formating) and creates a "cloud" of links.
  4. As an XML sitemap file (see www.sitemaps.org).
    Used by Google, Yahoo and other major search engines to enhance your site's presence in search engine listings.

All links include the <title> and <meta description> from the documents in the <a title= > tag.
All images include the <title> in the <img alt= > tag.

Formating of your sitemap is handled by style sheets (css). Each element has a class assigned for easy yet detailed formating.

* new version now uses robots.txt for exclusions.

 

Example Source Code

View example (commented) source generating all site map variants
     [Run this example]

View a simple site map that will run on most web servers

Other Examples in use:
http://www.KevinBurkholder.com/SiteMap.php - a site map of this web site
http://www.KevinBurkholder.com/MultiSiteMap.php - a multiple-site site map
http://www.KevinBurkholder.com/Newsletters.php - a news letter archive with TOC
http://www.KevinBurkholder.com/Downloads.php - a directory listing
http://www.KevinBurkholder.com/ - a link cloud at the footer of each page