Re: permissions to work with fopen

From: Date: Sun, 16 Feb 2003 10:19:25 +0000
Subject: Re: permissions to work with fopen
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-135735@lists.php.net to get a copy of this message
Tahnk you, but I don't want to let web user see the log file "Nicholas Wieland" <nicholas_wieland@yahoo.it> wrote in message news:20030216011528.GA1411@localhost... > 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 (#135735) next »