I have a sitemap generator. When the cron job runs...which is nightly, it is creating files and sitemaps the permissions to 99/99 instead of drwxrwxrwx (777). How do I prevent this because then I get errors like
Code:
Warning: fopen(/home/*******/public_html/*******/data/urllist.txt): failed to open stream: Permission denied in /home/*******/public_html/********/pages/class.xml-creator.inc.php(2) : eval()'d code on line 95