note 35543 rejected from function.fwrite by vincent
| From: | vincent@php.net | Date: | Sun, 28 Sep 2003 13:52:22 +0000 |
| Subject: | note 35543 rejected from function.fwrite by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-57213@lists.php.net to get a copy of this message | ||
Note Submitter: preacher@shashinshashin.com
----
I keep getting this error:
Warning: fwrite(): supplied argument is not a valid stream resource
with my code below:
@ $fp = fopen("$DOCUMENT_ROOT/guestbook/guestbook.txt", 'ab');
$outputstring = "NAME : ".$name."\n"."COMMENTS :
\n".$comments."\n\n";
fwrite($fp, $outputstring);
fclose($fp);
can anyone tell me what is wrong with my code?