Are independent files stored somewhere for spiders to access? If so, run the script in that directory (modify $my_domain to match) then merge the generated file with the maps from other directories to create one master sitemap.
If there are no independent files for spiders to find, then the script will not be as useful to you.
NOTE: If the URLs that you want to include in one of these sitemaps look like the ones on this forum (with query strings) BE SURE to convert all of the entities in your URLs. i.e. If this is the type of URL you want in your XML sitemap:
http:/ /www.example.com/pages.cgi?page=1§ion=14then be sure to convert it to:
http:/ /www.example.com/pages.cgi?page=1[b]&[/b]section=14See these instructions [sitemaps.org] for all entities that need to be converted to UTF-8 before including them in sitemap.xml.
[edited by: StupidScript at 9:18 pm (utc) on April 16, 2007]