PHP Classes

googleSiteMap: Build a Google site map crawling the site pages

Recommend this page to a friend!
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 2,310 All time: 1,685 This week: 170Up
Version License PHP version Categories
google_site 2.0Freeware4.0XML, Content management


This class can be used to build to a Google site map by crawling the pages of a site.

It starts fetching a given URL and then follows any links to crawl a whole site.

The class generates a XML document in the Google site map format with the URLs of all crawled pages.

The site map XML document is returned as string value.

The list of all URLs is stored in a cached file.

Innovation Award
PHP Programming Innovation award nominee
December 2007
Number 4

Prize: One copy of DWebPro Standard License
Site maps are XML documents that sites may have to let Google and other search engines know about all the pages of a site, so the sites can be fully indexed and all their pages appear feature in search results.

Listing all the pages of a site to build a site map may require a lot of time and manual effort.

This class provides an automated solution to building site maps that may require much less effort. It can crawl a site and find all its pages by following the links that are found in each page.

Manuel Lemos
Picture of wenchi
Name: wenchi <contact>
Classes: 2 packages by
Country: Taiwan Taiwan
Age: ???
All time rank: 9454 in Taiwan Taiwan
Week rank: 653 Up3 in Taiwan Taiwan Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file class.googlesitemap.php Class class.googlesitemap.php
Accessible without login Plain text file example.php Example example.php
Accessible without login Plain text file example1.php Example example1.php
Accessible without login Plain text file sitemap.php Example sitemap.php
Accessible without login Plain text file sitemap.xml Output sitemap.xml
Plain text file Snoopy.class.php Class Snoopy.class.php

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:1,685
This week:170Up