fopen perms help

From: Date: Mon, 12 May 2003 14:18:20 +0000
Subject: fopen perms help
Groups: php.general 
Request: Send a blank email to php-general+get-147302@lists.php.net to get a copy of this message
Hi Please could somebody help me out with a permissions problem. I have the following in a test script (line numbers appended): 43: $fp = fopen("/var/www/html/ittracker/ross.txt","w"); 44: fwrite($fp,"This is a test"); 45: fclose($fp); When I run it I get the following error: Warning: fopen("/var/www/html/ittracker/ross.txt", "w") - Permission denied in /var/www/html/ittracker/reservations/save_file.php on line 43 I am not sure what the perms should be on the directory. At the moment they are my user and group. I did try to put mysql and apache in the same group but that did not help. Any ideas or pointers, Thanks, Ross

« previous php.general (#147302) next »