Re: Why i can't write to remote file ?

From: Date: Sun, 20 May 2001 18:34:10 +0000
Subject: Re: Why i can't write to remote file ?
References: 1 2 3 4  Groups: php.windows 
Request: Send a blank email to php-windows+get-7770@lists.php.net to get a copy of this message
Darren wrote: > > Hi Darren, > > > > i have tried omitting http, so the line 11 becomes : > > > > $fp = fopen("c:/webshare/wwwwroot/examples/datafile.txt","w"); > > > > Is does not still work, and when i run it i have the warning message: > > > > ------------------------------------------------------------------ > > Total cost of the neckties 90 > > Warning: fopen("c:/webshare/wwwwroot/examples/datafile.txt","w") - No > > such > > file or directory in c:\webshare\wwwroot\examples\calculate.php on line 11 > > > > Unable to open remote file for writing. > > ------------------------------------------------------------------ > > > > > > I don't understand where is the error ? > > > > Thank you in advance > > > > > > ah now I see. Try removing the extra W from the path making wwwwroot to > wwwroot > > Best of luck > > Darren > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net Hi Darren, now with the correction you suggested it works fine, but the version with the URL does't yet work fine . I have the same error that i just said to you: Warning: fopen("http://localhost/examples/datafile.txt","w") - No error in c:\webshare\wwwroot\examples\calculate.php on line 11 How do i get right access on the directory http://localhost/examples ? What must i do into php.ini file or into http.conf of Apache ? I checked that into the php.ini file i have : allow_url_fopen=On. Thank you in advance.

« previous php.windows (#7770) next »