PHP Classes

NEEDS WARNING LABLE

Recommend this page to a friend!

      Sitemap creator  >  All threads  >  NEEDS WARNING LABLE  >  (Un) Subscribe thread alerts  
Subject:NEEDS WARNING LABLE
Summary:Don't use this class before backing up any existing site maps.
Messages:2
Author:Robert Visser
Date:2009-04-18 20:12:51
Update:2009-04-20 07:37:51
 

  1. NEEDS WARNING LABLE   Reply   Report abuse  
Picture of Robert Visser Robert Visser - 2009-04-18 20:12:51
Despite that I placed the class and example in a folder other than my route directory, it over wrote the existing sitemap in the route directory. Unanticipated and NOT wanted. There needs to be a way to run the example without it being obtrusive.

  2. Re: NEEDS WARNING LABLE   Reply   Report abuse  
Picture of Mhd Zaher Ghaibeh Mhd Zaher Ghaibeh - 2009-04-20 07:37:51 - In reply to message 1 from Robert Visser
Hello sir :
if you have put your the files in a folder other than your route directory and you would like your sitemap.xml file to be put in that directory you should change the required options :

1- you have to change this also to be like http://www.domain.com/sitemapdir/
$siteMap->siteUrl = 'http://www.domain.com';

2- this is the base directory where your sitemap.xml file will be generated
$siteMap->siteDir = $_SERVER['DOCUMENT_ROOT'];

and those options were available in the example.php file , but its look like you miss them .
thank you

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