Re: permissions to work with fopen

From: Date: Sun, 16 Feb 2003 01:15:28 +0000
Subject: Re: permissions to work with fopen
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-135716@lists.php.net to get a copy of this message
On 2003.02.15 20:11 qt wrote:
I am planning to make a log file with fopen command. I am succesfully read and write the file with fopen. But as I see fopen is requiring a file with read and write permission for public.
Not for public, for your webserver user, www-data or another similar name.
I was using same method with perl in cgi-bin directory; but I was giving read and write permission for only owner. If I give write and read permission for only owner; fopen command can not read the file. Do you have any idea, how can I make log file with protecting from public?
Give pemissions to your web server user. Cheers Nicholas

« previous php.general (#135716) next »