> -----Original Message-----
> From: Chris Scott [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 27, 2008 8:48 AM
> To: [email protected]
> Subject: [PHP] FW: [SPAM] RE: [PHP] fwrite() Append Files
> Importance: Low
>
> I don't think you can open files for writing over http, you get an
> error:
>
> failed to open stream: HTTP wrapper does not support writeable
> connections.
>
> -----Original Message-----
> From: Per Jessen [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 27, 2008 2:39 PM
> To: [email protected]
> Subject: [SPAM] RE: [PHP] fwrite() Append Files
> Importance: Low
>
> Wei, Alice J. wrote:
>
> >
> > Do you mean to edit $ourFileHandle to fopen($ourFileName, 'wba')?
> >
>
> I think fopen($ourFileName, 'a') will do what you want.
From Alice's code:
$ourFileName = "hello.txt";
$ourFileHandle = fopen($ourFileName, 'wb') or die("can't open file");
So... she is not, in fact, trying to write a file over HTTP. She is reading a
file via HTTP and writing something pertaining to it on the local file system.
Also, please refrain from top-posting. It makes the posts get very confusing. :(
Todd Boyd
Web Programmer