Topic: google xml sitemap creator

this creates the xml google sitemap for submission to their sitemap submission service
http://www.google.com/webmasters/sitemaps/

it creates googlemap.xml for rewritten urls
and googlemap2.xml for non rewritten urls
it also creates txt files containing a list of the listing urls both rewritten and non rewritten forms named googlemap.txt and googlemap2.txt


the rewritten urls use the format of
siteid.html
instead of detail.php?siteid=
so detail.php?siteid=112
becomes 112.html

if you have support for apache rewrite
just add this to your .htaccess or php.ini

RewriteEngine on 
#RewriteRule ^~(.*)$ /profile.php?profile=$1 [L] 
RewriteRule ^([a-zA-Z0-9]*).html detail.php?siteid=$1

copy and paste the script below to a new page named whatever you want, changing the settings to what maches yours, when ever this page is called it updates all the files or creates them if they dont exist, so setting up a cron job to update is a good idea....

<?
// site map creator for rewritten and non rewritten urls
// creates google compliant xml files for their sitemap service
// creates a txt list of all listing urls



// SETTINGS TO BE EDITED 
$url = "http&#58;//www.yourdomain.com/path to/classifieds/" ;  // url to directory must have trailing slash
$pageurl = "http&#58;//www.yourdomain.com/path to/classifieds/detail.php?siteid=" ; //url to listing no trailing slash
$changefreq = "daily" ;   // either daily, weekly, or monthly 
$priority = "1.0" ;          //  any number from 0.0 to 1.0
$hostname_sitemap = "localhost";         // mysql location  
$database_sitemap = "***************";  // mysql database
$username_sitemap = "********";        // mysql user 
$password_sitemap = "********";        //  mysql password

//    no more editing needed beyond here


$sitemap = mysql_pconnect&#40;$hostname_sitemap, $username_sitemap, $password_sitemap&#41; or trigger_error&#40;mysql_error&#40;&#41;,E_USER_ERROR&#41;; 

//  REWRITTEN URLS GOOGLE XML SITE MAP

// first open let's open the sitemap xml and write the header info
$fp = fopen&#40;"googlemap.xml","w"&#41;;
fwrite&#40;$fp, "n<?xml version="1.0" encoding="UTF-8"?>n"&#41;;
fwrite&#40;$fp, "<urlset xmlns="http&#58;//www.google.com/schemas/sitemap/0.84">n"&#41;;
fclose&#40;$fp&#41;;

// okay know let's hook up with our base and slide our query in
mysql_select_db&#40;$database_sitemap, $sitemap&#41;;
$query_Recordset1 = "SELECT * FROM ad";
$Recordset1 = mysql_query&#40;$query_Recordset1, $sitemap&#41; or die&#40;mysql_error&#40;&#41;&#41;;
$row_Recordset1 = mysql_fetch_assoc&#40;$Recordset1&#41;;
$totalRows_Recordset1 = mysql_num_rows&#40;$Recordset1&#41;;



do &#123;

//now time to spread the love on the page
$fp = fopen&#40;"googlemap.xml","a"&#41;;
fwrite&#40;$fp, "n<url>n"&#41;;
fwrite&#40;$fp, "<loc>" . $url  . $row_Recordset1&#91;'siteid'&#93; .".html</loc>n"&#41;;
fwrite&#40;$fp, "<changefreq>". $changefreq . "</changefreq>n"&#41;;
fwrite&#40;$fp, "<priority>". $priority ."</priority>n"&#41;;
fwrite&#40;$fp, "</url>n"&#41;;
fclose&#40;$fp&#41;;

// fancy stuff going on here
&#125; while &#40;$row_Recordset1 = mysql_fetch_assoc&#40;$Recordset1&#41;&#41;; 
mysql_free_result&#40;$Recordset1&#41;;


// time to close up shop tabla rosa let's spark the jay
$fp = fopen&#40;"googlemap.xml","a"&#41;;
fwrite&#40;$fp, "n</urlset>n"&#41;;
fclose&#40;$fp&#41;;
echo 'rewritten url google map created <br>';

//     END REWRITTEN URLS GOOGLE XML SITE MAP


//   NON-REWRITTEN URLS GOOGLE XML SITE MAP


// first open let's open the sitemap xml and write the header info
$fp = fopen&#40;"googlemap2.xml","w"&#41;;
fwrite&#40;$fp, "n<?xml version="1.0" encoding="UTF-8"?>n"&#41;;
fwrite&#40;$fp, "<urlset xmlns="http&#58;//www.google.com/schemas/sitemap/0.84">n"&#41;;
fclose&#40;$fp&#41;;

// okay know let's hook up with our base and slide our query in
mysql_select_db&#40;$database_sitemap, $sitemap&#41;;
$query_Recordset1 = "SELECT * FROM ad";
$Recordset1 = mysql_query&#40;$query_Recordset1, $sitemap&#41; or die&#40;mysql_error&#40;&#41;&#41;;
$row_Recordset1 = mysql_fetch_assoc&#40;$Recordset1&#41;;
$totalRows_Recordset1 = mysql_num_rows&#40;$Recordset1&#41;;



do &#123;

//now time to spread the love on the page
$fp = fopen&#40;"googlemap2.xml","a"&#41;;
fwrite&#40;$fp, "n<url>n"&#41;;
fwrite&#40;$fp, "<loc>" .$pageurl . $row_Recordset1&#91;'siteid'&#93; ."</loc>n"&#41;;
fwrite&#40;$fp, "<changefreq>". $changefreq . "</changefreq>n"&#41;;
fwrite&#40;$fp, "<priority>". $priority ."</priority>n"&#41;;
fwrite&#40;$fp, "</url>n"&#41;;
fclose&#40;$fp&#41;;

// more fancyness
&#125; while &#40;$row_Recordset1 = mysql_fetch_assoc&#40;$Recordset1&#41;&#41;;
mysql_free_result&#40;$Recordset1&#41;; 


// time to close up shop tabla rosa let's spark the jay
$fp = fopen&#40;"googlemap2.xml","a"&#41;;
fwrite&#40;$fp, "n</urlset>n"&#41;;
fclose&#40;$fp&#41;;
echo 'non rewritten url google map created <br>';

// END NON REWRITTEN URLS GOOGLE XML SITE MAP


// TEXT MAP REWRITTEN URLS

// first open let's open and clear the file
$fp = fopen&#40;"googlemap.txt","w"&#41;;
fclose&#40;$fp&#41;;

// okay know let's hook up with our base and slide our query in
mysql_select_db&#40;$database_sitemap, $sitemap&#41;;
$query_Recordset1 = "SELECT * FROM ad";
$Recordset1 = mysql_query&#40;$query_Recordset1, $sitemap&#41; or die&#40;mysql_error&#40;&#41;&#41;;
$row_Recordset1 = mysql_fetch_assoc&#40;$Recordset1&#41;;
$totalRows_Recordset1 = mysql_num_rows&#40;$Recordset1&#41;;

// huh huh we are doing it
do &#123;

//now time to spread the love on the page
$fp = fopen&#40;"googlemap.txt","a"&#41;;
fwrite&#40;$fp, $url . $row_Recordset1&#91;'siteid'&#93; .".htmln"&#41;;
fclose&#40;$fp&#41;;



 &#125; while &#40;$row_Recordset1 = mysql_fetch_assoc&#40;$Recordset1&#41;&#41;;
 mysql_free_result&#40;$Recordset1&#41;;


// time to close up shop tabla rosa let's spark the jay
echo 'rewritten url google map text created <br>';

// END TEXT MAP REWRITTEN URLS


// TEXT MAP NON REWRITTEN URLS


// first open let's open and clear the file
$fp = fopen&#40;"googlemap2.txt","w"&#41;;
fclose&#40;$fp&#41;;

// okay know let's hook up with our base and slide our query in
mysql_select_db&#40;$database_sitemap, $sitemap&#41;;
$query_Recordset1 = "SELECT * FROM ad";
$Recordset1 = mysql_query&#40;$query_Recordset1, $sitemap&#41; or die&#40;mysql_error&#40;&#41;&#41;;
$row_Recordset1 = mysql_fetch_assoc&#40;$Recordset1&#41;;
$totalRows_Recordset1 = mysql_num_rows&#40;$Recordset1&#41;;


do &#123;

//now time to spread the love on the page
$fp = fopen&#40;"googlemap2.txt","a"&#41;;
fwrite&#40;$fp, $pageurl . $row_Recordset1&#91;'siteid'&#93; ."n"&#41;;
fclose&#40;$fp&#41;;

&#125; while &#40;$row_Recordset1 = mysql_fetch_assoc&#40;$Recordset1&#41;&#41;;
mysql_free_result&#40;$Recordset1&#41;; 


// time to close up shop tabla rosa let's spark the jay
echo 'non rewritten url google text map created <br>';

// END TEXT MAP NON REWRITTEN URLS
?>

+ -

Re: google xml sitemap creator

nice approach, I also added a listing of each category on the site, as I not only want my users to find a specific ad, but also a specific category.

same code can be used, just change the query to pickup the fields from category, something like select catid, catname from category

+ -

Re: google xml sitemap creator

this is to use with googles sitemap service, they introduced a month or so ago to aid them in crawling dynamic sites,  you create the sitemap and submit it to them to directly download and crawl,  they prefer either the xml file or a simple txt file of urls, i have gotten them to accept regular rss feeds but it has some problems with them occasional...after submiting the xml sitemap, and making the html site map, i went from roughly 400 pages indexed to over a thousand in a week or two...i use an url rewrite as well......

for a "regular" rss feed your script is better.....

on mine you can modify it to be one as well...
good idea would be maybe have the scipt produce both an rss xml and the sitemap xml, and either set up a cron job, or hide the script in a hidden iframe, on the final confirm page of the ad process, so the feed is updated as each listing is added....i dont have a need for an rss feed, which is why i didnt code it in lol, but if someone wants it i can add it no problem

+ -

Re: google xml sitemap creator

.htaccess

RewriteEngine on
#RewriteRule ^~(.*)$ /profile.php?profile=$1 [L]
RewriteRule ^([a-zA-Z0-9]*).html detail.php?siteid=$1

This does not function for me.
It sees my archive: .htaccess
.htaccess

#2#roro60#
AuthName "Acesso Restrito"
AuthType Basic
AuthUserFile "/www/roro60/acctman_htpasswd"
AuthGroupFile "/www/roro640/acctman_htgroup"
require group roro60
RewriteEngine on
#RewriteRule ^~(.*)$ /profile.php?profile=$1 [L]
RewriteRule ^([a-zA-Z0-9]*).html detail.php?siteid=$1

I go to erase the archive htaccess. That is dangerous?
Erasing the archive htaccess everything is correct for me. That is recommended? He is dangerous?

What I make?

I am Brazilian.
I live in Brazil.
I do not say English.
Use a software for translation.

+ -

Re: google xml sitemap creator

your server must be able to support the apache re-write mod, if it doesn't you won't be able to use that feature...check with your host and see if you do...

i dont understand the rest of your questions well enough to answer.....

+ -

Re: google xml sitemap creator

$priority = "1.0" ;          //  any number from 0.0 to 1.0

Can some explain the priority?

Re: google xml sitemap creator

http://www.google.com/webmasters/sitema … about.html

explains all parts of their sitemap program....


priority is simply how important you feel the page is with 0.0 being the lowest and 1.0 being the highest

+ -

Re: google xml sitemap creator

Hi,
I'm new to this and dont under stand the googlemap.txt as it prints out

http&#58;//www.mysite.com/568.html

that links to a non existent file?  :-?  :-?

googlemap2.txt on the otherhand prints out real links

http://www.mysite.com/detail.php?siteid=568.

Can someone explain please

Man in a suitcase

+ -

Re: google xml sitemap creator

that text list only works if you use rewritten urls, using the mod-rewrite code in the first post. the google sitemap program accepts straight text lists as urls as well as the xml files...if you arent using rewritten urls you can simply remove that section from the code, i only put both of them together to save space......

+ -

Re: google xml sitemap creator

Riiiiiiiiiiiiiight! wink
now I get it ............. I put the re wrute code in and it worked fine.

Just gotta say this is the sirt of mod that's really needed by this program, it's really a practical improvement.

Man in a suitcase

+ -

Re: google xml sitemap creator

Hi,
I have this mod working on a demo site and it works great, O just put it on my main site and I get this error  yikes everything is edited right so it must be a problem with the server or summat. Anybody gotta a clue?

Warning&#58; fopen&#40;googlemap.xml&#41;&#58; failed to open stream&#58; Permission denied in /home/mysite/public_html/sitemap.php on line 26

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 27

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 28

Warning&#58; fclose&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 29

Warning&#58; fopen&#40;googlemap.xml&#41;&#58; failed to open stream&#58; Permission denied in /home/mysite/public_html/sitemap.php on line 43

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 44

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 45

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 46

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 47

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 48

Warning&#58; fclose&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 49

Warning&#58; fopen&#40;googlemap.xml&#41;&#58; failed to open stream&#58; Permission denied in /home/mysite/public_html/sitemap.php on line 43

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 44

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 45

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 46

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 47

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 48

Warning&#58; fclose&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 49

Warning&#58; fopen&#40;googlemap.xml&#41;&#58; failed to open stream&#58; Permission denied in /home/mysite/public_html/sitemap.php on line 57

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 58

Warning&#58; fclose&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 59
rewritten url google map created 

Warning&#58; fopen&#40;googlemap2.xml&#41;&#58; failed to open stream&#58; Permission denied in /home/mysite/public_html/sitemap.php on line 69

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 70

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 71

Warning&#58; fclose&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 72

Warning&#58; fopen&#40;googlemap2.xml&#41;&#58; failed to open stream&#58; Permission denied in /home/mysite/public_html/sitemap.php on line 86

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 87

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 88

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 89

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 90

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 91

Warning&#58; fclose&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 92

Warning&#58; fopen&#40;googlemap2.xml&#41;&#58; failed to open stream&#58; Permission denied in /home/mysite/public_html/sitemap.php on line 86

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 87

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 88

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 89

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 90

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 91

Warning&#58; fclose&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 92

Warning&#58; fopen&#40;googlemap2.xml&#41;&#58; failed to open stream&#58; Permission denied in /home/mysite/public_html/sitemap.php on line 100

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 101

Warning&#58; fclose&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 102
non rewritten url google map created 

Warning&#58; fopen&#40;googlemap.txt&#41;&#58; failed to open stream&#58; Permission denied in /home/mysite/public_html/sitemap.php on line 111

Warning&#58; fclose&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 112

Warning&#58; fopen&#40;googlemap.txt&#41;&#58; failed to open stream&#58; Permission denied in /home/mysite/public_html/sitemap.php on line 125

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 126

Warning&#58; fclose&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 127

Warning&#58; fopen&#40;googlemap.txt&#41;&#58; failed to open stream&#58; Permission denied in /home/mysite/public_html/sitemap.php on line 125

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 126

Warning&#58; fclose&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 127
rewritten url google map text created 

Warning&#58; fopen&#40;googlemap2.txt&#41;&#58; failed to open stream&#58; Permission denied in /home/mysite/public_html/sitemap.php on line 156

Warning&#58; fclose&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 157

Warning&#58; fopen&#40;googlemap2.txt&#41;&#58; failed to open stream&#58; Permission denied in /home/mysite/public_html/sitemap.php on line 170

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 171

Warning&#58; fclose&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 172

Warning&#58; fopen&#40;googlemap2.txt&#41;&#58; failed to open stream&#58; Permission denied in /home/mysite/public_html/sitemap.php on line 170

Warning&#58; fwrite&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 171

Warning&#58; fclose&#40;&#41;&#58; supplied argument is not a valid stream resource in /home/mysite/public_html/sitemap.php on line 172
non rewritten url google text map created 
Man in a suitcase

+ -

12

Re: google xml sitemap creator

the script cannot create the files

so make the directory writable

Everything always takes longer than you think.

+ -

13

Re: google xml sitemap creator

Code:
http://www.mysite.com/568.html


that links to a non existent file?   

googlemap2.txt on the otherhand prints out real links

http://www.mysite.com/detail.php?siteid=568.

http://www.mysite.com/568.html

is the rewritten url of (aka  user friendly urls)

http://www.mysite.com/detail.php?siteid=568

both will lead to ad no 568

Everything always takes longer than you think.

+ -

Re: google xml sitemap creator

Hi,
I have a fix in that I have manually created the files and given them permissions of 666  yikes  (sign of the devil)

I dont know why the script does not work on this new server I will let you know if I ever find out

Man in a suitcase

+ -

15

Re: google xml sitemap creator

777 should work

it seems to be the problem of no writing permissions.

what if you place the file in another directory and chmod this one to all write?

Everything always takes longer than you think.

+ -

Re: google xml sitemap creator

sometimes host turn off the fread/fwrite/fopen functions for security and liability issues, 5 to 6 lines of code using these functions and you are running a phishing or scraper site....

try creating the xml files manually with either 777 or 755 chmod, just a blank file named googlemap.xml, and then the script should work, if not ill come up with a different way to do it......

+ -

Re: google xml sitemap creator

Hi,
thats what I said I did in my last post.I created them and chmod them to 666 and it works okay wink

Man in a suitcase

+ -

Re: google xml sitemap creator

Hi,
I'm playing around with this for another use and want to know how to include a header and footer in this script just using the non re written TXT  code.

Anyone help out here?

Man in a suitcase

+ -

Re: google xml sitemap creator

before the
$fp = fopen

code add these varibles
$header="<? include "header.php" ?>";
$footer="<? include "footer.php" ?>";


then add these lines to the list of fwrites at the appritate places
fwrite($fp, $header." n");
fwrite($fp, $footer." n");

you also need to change the
$fp = fopen("googlemap2.txt","a");

to
$fp = fopen("googlemap2.php","a");

+ -

Re: google xml sitemap creator

:oops:  :oops:  :oops:
What I did was to create a new php file with header and footer includes and include googlemap.txt and forgot to post ifeel like a real wally  even posting tongue Why the lord I didn't think of that straight ways he only knows  :oops:

Man in a suitcase

+ -

Re: google xml sitemap creator

Ok why does our mod rewrite not work?

RewriteEngine on
#RewriteRule ^~(.*)$ /profile.php?profile=$1 [L]
RewriteRule ^([a-zA-Z0-9]*).html detail.php?siteid=$1

We have other mod rewrites working

All the files get created ok ie the xml and txt

Creates all the files correctly but the mod rewrite? and I know our host supports it?

Where do we go next?

from phpinfo

Loaded Modules  mod_auth_passthrough, mod_log_bytes, mod_bwlimited, mod_php4, mod_frontpage, mod_ssl, mod_setenvif, mod_so, mod_expires, mod_auth, mod_access, mod_rewrite, mod_alias, mod_userdir, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_status, mod_negotiation, mod_mime, mod_log_config, mod_env, http_core

After checking the forums this works for us

http://www.deltascripts.com/board/viewt … od+rewrite

but the mod rewrite for the adverts does not?

Re: google xml sitemap creator

For those who had issues with the mod rewrite this worked for us

RewriteEngine on
#RewriteRule ^~(.*)$ /profile.php?profile=$1 [L]
RewriteRule ([a-zA-Z0-9]*).html http://www.domain.com/detail.php?siteid=$1


Now the mod rewrite works but how does this work with google maps?
Do you need to robot.txt the main site and only allow the re written url to be searched?

Re: google xml sitemap creator

Hello Peeps,

anyone know how to make this list the categories and subcategories or a little script that will print out the links to them?

Man in a suitcase

+ -

Re: google xml sitemap creator

Its okay I got around it roll

Man in a suitcase

+ -

Re: google xml sitemap creator

some crawler find an error with this

fwrite&#40;$fp, "n<?xml version="1.0" encoding="UTF-8"?>n"&#41;; 

but if you remove n its clears the problem


fwrite&#40;$fp, "<?xml version="1.0" encoding="UTF-8"?>n"&#41;; 
Man in a suitcase

+ -