I am getting the following errors on my entry page:
www.inetguides.com
Warning: fopen(/home/inetguid/public_html/news/data/news.txt): failed to open stream: Permission denied in /home/inetguid/public_html/news/inc/functions.inc.php on line 67
Warning: fclose(): supplied argument is not a valid stream resource in /home/inetguid/public_html/news/inc/functions.inc.php on line 68
Warning: fopen(/home/inetguid/public_html/news/data/comments.txt): failed to open stream: Permission denied in /home/inetguid/public_html/news/inc/functions.inc.php on line 69
Warning: fclose(): supplied argument is not a valid stream resource in /home/inetguid/public_html/news/inc/functions.inc.php on line 70
Warning: fwrite(): supplied argument is not a valid stream resource in /home/inetguid/public_html/news/inc/functions.inc.php on line 76
The code starting with line 67 and ending with line 76:
$handle = fopen("$cutepath/data/news.txt","w") or $error = "Can not open news.txt";
fclose($handle);
$handle = fopen("$cutepath/data/comments.txt","w") or $error = "Can not open comments.txt";
fclose($handle);
$fp = @fopen("$cutepath/data/auto_archive.db.php", "w");
@flock ($fp,2);
if(!$errors){ fwrite($fp, $now[year]."|".$now[month]."\n"); }
I have tried changing the permissions for the path in question in cpanel to 666, 755, and 751 with no change other than getting different error messages.
I am still new to all this and learning so any help at all is appreciated.
Thanks.