note 98759 added to function.fwrite
| From: | md-k at o2 dot pl | Date: | Mon, 05 Jul 2010 18:52:41 +0000 |
| Subject: | note 98759 added to function.fwrite | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-170721@lists.php.net to get a copy of this message | ||
Hi everybody,
I'm so sorry for my english, but i'm from Poland :)
I have problem when i try to do guestbook.
I want write down data until file on shape :
"ID|+|DATE|+|NICK|+|CONTENT|+|".
I have form with fields: nick and content, and 2 hidden field where is adding id (function date) and
data (function date).
I try with:
<code>
<?
$fp = fopen('database.txt', 'r+');
fwrite($fp, $id. '|+|' .$data. '|+|' .$nick. '|+|' .$content.
'|+|');
fclose($fp);
?>
GOOD!
</code>
And this function do nothing :/
If someone knows how to do this, I was be very happy ;) But when i try to do, all is crash :/ PLEASE
HELP ME !!!
----
Server IP: 69.147.83.197
Probable Submitter: 89.76.247.193
----
Manual Page -- http://www.php.net/manual/en/function.fwrite.php
Edit -- https://master.php.net/note/edit/98759
Del: integrated -- https://master.php.net/note/delete/98759/integrated
Del: useless -- https://master.php.net/note/delete/98759/useless
Del: bad code -- https://master.php.net/note/delete/98759/bad+code
Del: spam -- https://master.php.net/note/delete/98759/spam
Del: non-english -- https://master.php.net/note/delete/98759/non-english
Del: in docs -- https://master.php.net/note/delete/98759/in+docs
Del: other reasons-- https://master.php.net/note/delete/98759
Reject -- https://master.php.net/note/reject/98759
Search -- https://master.php.net/manage/user-notes.php