Re: fopen perms help

From: Date: Mon, 12 May 2003 18:53:58 +0000
Subject: Re: fopen perms help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-147329@lists.php.net to get a copy of this message
On Monday 12 May 2003 22:18, Ross Bateman wrote: > 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. Search the archives, this kind of question gets asked every other day or so. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Objects are lost only because people look where they are not rather than where they are. */

« previous php.general (#147329) next »