PHP Classes

File: example.php

Recommend this page to a friend!
  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: 16 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);
?>