By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 1,260 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

fopen(temp/pglog.20050106.log): failed to open stream: Permission denied

P: n/a
Hi,

In one of my script i'm trying to apend a daily log file (see script
part bellow). When the script runs, this message appears :
fopen(temp/pglog.20050106.log): failed to open stream: Permission
denied...
I've searched in many post and the solution seems to change the
permissions (chmod o+777). I did so, but it doesn't change. The server
continues not to be able to write in my directory. Any idea ?

Part of my script :
if($pgdebug) {
$time_start = pg_getmicrotime();
$fpl = fopen($pglogfile, 'a');
fwrite($fpl,$_GET["rub"]."\t".$_SESSION["login"]."\t".$time_start."\t".$sql."\t");
fclose($fpl);
}
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.