loneranger
Verified User
- Joined
- Feb 4, 2006
- Messages
- 6
Hi,
Whenever I access the counter I get some nasty errors, as below:
Warning: fopen(/home/romaniap/domains/.../public_html/phpmycounter/counter.dat) [function.fopen]: failed to open stream: Permission denied in /home/romaniap/domains/.../public_html/phpmycounter/counter.php on line 24
Warning: fputs(): supplied argument is not a valid stream resource in /home/romaniap/domains/.../public_html/phpmycounter/counter.php on line 25
Warning: fclose(): supplied argument is not a valid stream resource in /home/romaniap/domains/.../public_html/phpmycounter/counter.php on line 26
Now, this happens even after I set permission to 755 for all the files in the counter's folder and also for the folder.
(the 24, 25, 26th lines in "counter.php", to which errors reffer, are like this:
$fp = fopen($CONFIG['counter_data'], "w");
fputs ($fp, $count);
fclose ($fp);
)
I just can't track the bug.... somebody any ideas..??
Thanx
Whenever I access the counter I get some nasty errors, as below:
Warning: fopen(/home/romaniap/domains/.../public_html/phpmycounter/counter.dat) [function.fopen]: failed to open stream: Permission denied in /home/romaniap/domains/.../public_html/phpmycounter/counter.php on line 24
Warning: fputs(): supplied argument is not a valid stream resource in /home/romaniap/domains/.../public_html/phpmycounter/counter.php on line 25
Warning: fclose(): supplied argument is not a valid stream resource in /home/romaniap/domains/.../public_html/phpmycounter/counter.php on line 26
Now, this happens even after I set permission to 755 for all the files in the counter's folder and also for the folder.
(the 24, 25, 26th lines in "counter.php", to which errors reffer, are like this:
$fp = fopen($CONFIG['counter_data'], "w");
fputs ($fp, $count);
fclose ($fp);
)
I just can't track the bug.... somebody any ideas..??
Thanx