RE: [PHP-WIN] Why i can't write to remote file ?
| From: | Gu Weidong-a1923c | Date: | Thu, 29 Nov 2001 01:42:04 +0000 |
| Subject: | RE: [PHP-WIN] Why i can't write to remote file ? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-10647@lists.php.net to get a copy of this message | ||
Anyone can answer the question? I also meet this error.
-----Original Message-----
From: m.aprea [mailto:m.aprea@tiscalinet.it]
Sent: May 21, 2001 2:34 AM
To: php-windows@lists.php.net
Subject: Re: [PHP-WIN] Why i can't write to remote file ?
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.
--
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