Re: file permissions on counter?
| From: | Bogdan Stancescu | Date: | Wed, 24 Apr 2002 02:05:28 +0000 |
| Subject: | Re: file permissions on counter? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94295@lists.php.net to get a copy of this message | ||
You should check the whole path and make sure Apache has enough rights to read through all directories.
Bogdan
Antonio wrote:
Hi, I have to read a simple counter on my server, but the server responses that I haven't permissions to open the file which contains the data in write mode. This file (counter.txt) it has all the permissions (777). I don't know how to do, could somebody help me? I execute this file on server: <HTML> <HEAD> <TITLE></TITLE> <BODY> <?php $userip = $REMOTE_ADDR; if ($file=fopen("counter.txt", "w")) { $counter = fread($file, 10); $counter++; fwrite($file , $counter); fclose($file); } echo $counter; ?> </body> </html>