PHP Classes

File: examples/example1/example1.php

Recommend this page to a friend!
  Classes of Computing Mongoose   Simple PHP SiteMap Generator   examples/example1/example1.php   Download  
File: examples/example1/example1.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Simple PHP SiteMap Generator
Generate XML and text sitemaps from lists of pages
Author: By
Last change:
Date: 10 months ago
Size: 258 bytes
 

Contents

Class file image Download
<?php

require_once "../../SimpleSiteMapGenerator.php";

$pages=[
"index.html",
"file1.html",
"file2.html"
];

$sgen=new SimpleSiteMapGenerator();
$sgen->setBaseURL("https://mywebsite");
$sgen->generateSiteMapXML($pages);
$sgen->generateSiteMapTXT($pages);