netweb Posted August 8, 2007 Share Posted August 8, 2007 Can anyone tell me what might be causing these type errors? ------------- Warning: fopen(templates/main.html): failed to open stream: Permission denied in /home/homesfor/public_html/resource-links/admin.php on line 4461 Warning: fputs(): supplied argument is not a valid stream resource in /home/homesfor/public_html/resource-links/admin.php on line 4462 Warning: fclose(): supplied argument is not a valid stream resource in /home/homesfor/public_html/resource-links/admin.php on line 4463 ---------------- Your help is much appreciated. Quote Link to comment Share on other sites More sharing options...
btherl Posted August 8, 2007 Share Posted August 8, 2007 The script is trying to open templates/main.html, but it isn't allowed to. Is this a script you installed or a script you wrote? Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted August 8, 2007 Share Posted August 8, 2007 check that open_base_dir or safe_mode is not set in your configuartion file... Quote Link to comment Share on other sites More sharing options...
sandy1028 Posted August 8, 2007 Share Posted August 8, 2007 Set the permissions of the file using chmod Quote Link to comment Share on other sites More sharing options...
NArc0t1c Posted August 8, 2007 Share Posted August 8, 2007 Chmod for fopen: a/+ = 0777 r = 0755 w/+ = 0777 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.