Location: PHPKode > scripts > Site Map Generator > site-map-generator/example.php
<?
require 'SiteMapGenerator.class.php';

$mySite="http://blog.feliperibeiro.com";
$siteMapGenerator = new SiteMapGenerator($mySite);
$f = fopen("sitemap.xml","w+");
fwrite($f,$siteMapGenerator->generateSiteMap());
fclose($f);
?>
Return current item: Site Map Generator