Anyone can answer the question? I also meet this error.

-----Original Message-----
From: m.aprea [mailto:[EMAIL PROTECTED]]
Sent: May 21, 2001 2:34 AM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to