Page 1 of 1
[SOLVED] What does this mean?
Posted: Sun Mar 20, 2005 10:53 pm
by angelena
Hi...
Can anyone please tell me what the following error mean?
"fwrite(): supplied argument is not a valid stream resource"
"fclose(): supplied argument is not a valid stream resource"
Thanks alot ya..
Posted: Sun Mar 20, 2005 11:39 pm
by feyd
the handle you supplied is invalid; i.e. not a file resource.
Posted: Sun Mar 20, 2005 11:43 pm
by angelena
Thanks for replying me,but still im bit confuse how shud this error be handle,can u pls explain more detail to me..really appreciate for your help ya.
Following is the part of the code where the error is about:
Code: Select all
$file_mess="ask.txt";
$apri_file=fopen($file_mess,'a+');
fwrite($apri_file,$comment);
fclose($apri_file);
Header("Location: $url");
feyd | Please review how to post code using Code: Select all
tags. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
Posted: Sun Mar 20, 2005 11:50 pm
by feyd
try doing a var_dump() of $apri_file immediately following fopen() .. Also, check your error logs to be sure that no other errors are being thrown.
Solved
Posted: Mon Mar 21, 2005 12:40 am
by angelena
ohh..thankss a lot for ur help,the probs is now solved.
Have a nice day ya
