OKay, as far as the error im getting I think it's because the xml file is missing the </sitemapindex> on line 14. Is this a glitch in your script? I already modified the script;
fwrite( $multihandle, "<sitemap>
<loc>{$home}{$xtrafilegz}</loc>
<lastmod>{$a}</lastmod>
</sitemap>
");
}
//end xtra file
fwrite( $multihandle, "<sitemap>
<loc>{$home}{$file}</loc>
<lastmod>{$a}</lastmod>
</sitemap>
</sitemapindex>
");
At line 196 I added </sitemapindex> Which seemed to cure the problem.
|