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:



$userip = $REMOTE_ADDR;

if ($file=fopen("counter.txt",  "w")) {
   $counter = fread($file, 10);
   fwrite($file , $counter);

echo $counter;



PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to