Log in

View Full Version : error problems



afe
02-09-2008, 06:13 PM
Can anyone tell me why I am getting these errors?

"Warning: fopen(counter/%2Findexxxxx.php.counter) [function.fopen]: failed to open stream: Permission denied in /home/athletes/public_html/counter.php on line 20

Warning: fwrite(): supplied argument is not a valid stream resource in /home/athletes/public_html/counter.php on line 21

Warning: fclose(): supplied argument is not a valid stream resource in /home/athletes/public_html/counter.php on line 22
"

on this page http://athletes4excellence.com/indexxxxx.php .

thetestingsite
02-09-2008, 06:15 PM
check the permissions of the directory to make sure they are set to 777, and also check the file to make sure the same.

Hope this helps.

BLiZZaRD
02-09-2008, 06:55 PM
AHHHHHHHHHHHH!!!

I will tell you right now, if you have a script that requires CHMOD 777.. find another script. It should work on 755 or even 644, and if it doesn't then trash it. Especially being php, a 777 can cripple your site. Huge security hole.

afe
02-10-2008, 01:49 AM
Ok, thanks Blizzard, however, I can't find any other scripts.

thetestingsite
02-10-2008, 02:57 AM
The only other way to do something with php and text files (on a linux server) is to use chmod. The only other option would be to use MySQL with PHP.

Hope this helps.

afe
02-10-2008, 04:27 AM
Thanks!

tech_support
02-10-2008, 04:57 AM
You already have a thread started here (http://www.dynamicdrive.com/forums/showthread.php?t=28170). Don't start another one. You've been warned about this many times.