Login   Register  
PHP Classes
elePHPant
Icontem

File: example1.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  >  example1.php  >  Download  
File: example1.php
Role: Example script
Content type: text/plain
Description: example1.php
Class: googleSiteMap
Build a Google site map crawling the site pages
Author: By
Last change:
Date: 2007-12-16 21:32
Size: 600 bytes
 

Contents

Class file image Download
<?
/**
 * google sitemape example
 * 
 * @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;

?>