Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Felipe Ribeiro  >  Site Map Generator  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: How to use the class
Class: Site Map Generator
Generate a Google site map following page links
Author: By
Last change:
Date: 6 years ago
Size: 230 bytes
 

Contents

Class file image Download
<?
require 'SiteMapGenerator.class.php';

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