Have set up ok and can manually run the script and it writes to sitemap.html and sitemap.xml but fails on the cron job (see below). Permissions on data are 777 and sitemap.html in data has 666 so all should be ok . Any ideas??
X-Powered-By: PHP/5.2.14
Content-type: text/html
Resuming the last session (last updated: 2012-06-16 14:01:33) <h4>Completed</h4>Total pages indexed: 75 <br>Creating sitemaps...
<div id="percprog"></div>
Creating HTML sitemap...<div id="percprog2"></div><br />
<b>Warning</b>: fopen(/home/ozpwcer/public_html/classifieds/sitemap/data/sitemap.html) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in <b>/home/ozpwcer/public_html/classifieds/sitemap/pages/class.utils.inc.php</b> on line <b>102</b><br /> <br />
<b>Warning</b>: fwrite(): supplied argument is not a valid stream resource in
<b>/home/ozpwcer/public_html/classifieds/sitemap/pages/class.html-creator.inc.php</b> on line <b>102</b><br /> <br />
<b>Warning</b>: fclose(): supplied argument is not a valid stream resource in <b>/home/ozpwcer/public_html/classifieds/sitemap/pages/class.html-creator.inc.php</b> on line <b>102</b><br /> <h4>An error occured: </h4> <script> top.location = 'index.php?op=config&errmsg=Error+writing+to+these+files%3A%3Cbr+%2F%3E%0A%3Cb%3E%2Fhome%2Fozpwcer%2Fpublic_html%2Fclassifieds%2Fsitemap%2Fdata%2Fsitemap.html%3C%2Fb%3E%3Cbr+%2F%3E%0APlease+correct+files+permissions+and+resume+sitemap+creation.' </script>