Cameron Badgley <mailto:[EMAIL PROTECTED]>
    on Friday, November 21, 2003 1:42 PM said:

> I have written the following code but receive the error:
> Warning: fclose(): supplied argument is not a valid File-Handle
> resource in /u3/7/cirop27/public_html/todo/to2doDEL.php on line 63

[snip]

>         //delete the string
>         $mfile = str_replace($msg, "", $mfile);

I think it's because you are now assigning the output of str_replace()
to $mfile which at that points makes $mfile stop being a file handle and
turns it into a string, which is not a file handle.

This is just a guess, I haven't worked with files much.


HTH.
Chris.
--
Don't like reformatting your Outlook replies? Now there's relief!
http://home.in.tum.de/~jain/software/outlook-quotefix/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to