Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: Where is the problem it seems everything OK please help??


Message #1 by Jorge Cordero <jorge@d...> on Sun, 01 Apr 2001 21:22:55 -0600
Jorge Cordero wrote:

> I have been trying to write to a text file i can read it but i cant 
> write into it
> and i don have mesage errors can some one help where is the problem???
>
> $file =3D fopen("http://www.propietarismo.com/txtfiles/count.txt","r+");
> $count =3D fread($file, 
> filesize("http://www.propietarismo.com/txtfiles/count.txt"));
> fclose($file);
> $count +=3D1;
> $file =3D fopen("http://www.propietarismo.com/txtfiles/count.txt","w+");
> fputs($file, $count);
> fclose($file); }
>
> Jorge
> Thanks
>

Try using the actual operating system path to the file and not the URL.

Sheila






  Return to Index