PHP Classes

File: sample_files/array.php

Recommend this page to a friend!
  Classes of ultral   Google site map generator   sample_files/array.php   Download  
File: sample_files/array.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: 17 years ago
Size: 348 bytes
 

Contents

Class file image Download
<?php
include_once "../class/GoogleSiteMap.php";
// Create the GoogleSiteMap XML String
$map=new GoogleSiteMap();
//Add array of URL
$a=array("http://www.test.com/index.php?cat=boutique&id=6","http://www.test.com/index.php?cat=boutique&id=7");
$map->Add($a);
//close the XML String
$map->Close();
//Output the XML String
$map->View();
?>