Login   Register  
PHP Classes
elePHPant
Icontem

File: sitemap.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of wenchi  >  googleSiteMap  >  sitemap.php  >  Download  
File: sitemap.php
Role: Example script
Content type: text/plain
Description: sitemap.php
Class: googleSiteMap
Build a Google site map crawling the site pages
Author: By
Last change:
Date: 2007-12-16 21:33
Size: 601 bytes
 

Contents

Class file image Download
<?
/**
 * google sitemape create
 * 
 * @package googleSiteMap
 * @author www.phptw.idv.tw
 * @copyright www.phptw.idv.tw
 * @version 2007/12/14
 * @uses snoopy class
 * @link www.phptw.idv.tw
 */


ob_start();
set_time_limit(0);

//include_once(dirname(__FILE__)."/configuration.php");

include_once(dirname(__FILE__)."/class.googlesitemap.php");


$classSiteMap=new googleSiteMap("http://www.phptw.idv.tw",dirname(__FILE__)."/",true);

$fp=fopen("sitemap.xml","w");
fputs($fp,$classSiteMap->getSiteMapContent());

fclose($fp);
$classSiteMap->printSiteMap();

exit;

?>