<?
/**
* 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;
?>
|