PHP Classes

File: sitemap.example.php

Recommend this page to a friend!
  Classes of Gianluca Zanferrari  >  PHP Crawl Sitemap Generator  >  sitemap.example.php  >  Download  
File: sitemap.example.php
Role: Example script
Content type: text/plain
Description: example script
Class: PHP Crawl Sitemap Generator
Crawl Web site and generate a XML sitemap
Author: By
Last change:
Date: 4 years ago
Size: 495 bytes


Class file image Download

// replace the example URL with a real one
$targetUrl = '';
$arrExcludeFolders = array(''); // empty array for no folder excluding

$sm = new sitemap($targetUrl, $arrExcludeFolders);


// see class for more options

// leave second parameter for no output to browser
$sm->write_xml('sitemap.xml', TRUE);

For more information send a message to info at phpclasses dot org.