pro_php thread: RE: this one is the corI am experiencing problems on a- simple fopen()
OOOPS it seems that the script from before has some extra =20 and 3d it was
the crtl copy. sorry here its the goodone
ihave the following script for txt counter
<?
$file=fopen("anum.txt","r+");
$count=fread($file, filesize("anum.txt"));
fclose($file);
$count++;
$file = fopen("anum.txt","w+");
$kk = fwrite($file, "$count");
fclose($file);
?>
my permisons are set 777 but i am still having this answer permision
denied
any ideas????
can you see any mistake in this script???
also i am hving problems overwriting files, I can delete,upload them,
but every time i try to over write i got you are not authorized to
perform this task. i have check an the permision are set 777 haas
anybody experience something similar???
>Thanks
>
>
>Jorge
>
-----Mensaje original-----
De: Jorge Cordero <jorge@d...>
Para: professional php <pro_php@p...>
Fecha: Martes, 17 de Julio de 2001 04:27 p.m.
Asunto: [pro_php] I am experiencing problems on a simple fopen()
ihave the following script for txt counter
<?
$file=fopen("anum.txt","r+");
$count=fread($file, filesize("anum.txt"));
fclose($file);
$count++;
$file = fopen("anum.txt","w+");
$kk = fwrite($file, "$count");
fclose($file);
?>
my permisons are set 777 but i am still having this answer permision
denied
any ideas????
can you see any mistake in this script???
also i am hving problems overwriting files, I can delete,upload them,
but every time i try to over write i got you are not authorized to
perform this task. i have check an the permision are set 777 haas
anybody experience something similar???
>Thanks
>
>
>Jorge