PHP Classes

googleSiteMap: Build a Google site map crawling the site pages

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

Author

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: 9464 in Taiwan Taiwan
Week rank: 164 Up1 in Taiwan Taiwan Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (6)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,311
This week:0
All time:1,685
This week:673Up