PHP Classes
elePHPant
Icontem

File: sample_files/folder.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of ultral  >  Google site map generator  >  sample_files/folder.php  >  Download  
File: sample_files/folder.php
Role: Example script
Content type: text/plain
Description: sample
Class: Google site map generator
Generate Google site maps from arrays or MySQL
Author: By
Last change:
Date: 8 years ago
Size: 355 bytes
 

Contents

Class file image Download
<?php
include_once "../class/GoogleSiteMap.php";
// Create the GoogleSiteMap XML String
$map=new GoogleSiteMap();
//Add a folder to parse
$option=array(url=>"http://www.test.com/",hidden=>".htaccess,.txt,.xml",recursive=>true);
$map->Add("../sample_files",$option);
//close the XML String
$map->Close();
//Output the XML String
$map->View();
?>