<?php
    
require_once('GsgXml.class.php');

    
$gs = new GsgXml();
    
$gs->addUrl('http://www.phpriot.com');
    
$gs->addUrl('http://www.phpriot.com/d/articles/index.html'falsetime(), false'daily'0.8);

    
// output the sitemap compressed with HTTP headers
    
$gs->output(falsetruetrue);

    
// output the sitemap not compressed with HTTP headers
    
$gs->output(falsefalsetrue);

    
// return the XML uncompressed
    
$xml $gs->output(true);

    
// return the XML compressed
    
$xml $gs->output(truetrue);

    
// output the XML compressed without HTTP headers
    // you can use this to write to a compressed file directly:
    // # php index.php > sitemap.xml.gz
    
$gs->output(falsetruefalse);

    
// output the XML not compressed without HTTP headers
    // you can use this to write to an compressed file directly:
    // # php index.php > sitemap.xml
    // or you can pipe it through gzip manually
    // # php index.php | gzip > sitemap.xml.gz
    
$gs->output(falsefalsefalse);
?>