note 9441 added to rewind
| From: | d99majo at dtek dot chalmers dot se | Date: | Fri, 03 Nov 2000 12:52:13 +0000 |
| Subject: | note 9441 added to rewind | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7339@lists.php.net to get a copy of this message | ||
Why cant I use rewind when I want to write at the beginning of a file..
$fp = fopen (basename($PHP_SELF) . ".comment", "a");
rewind ($fp);
fwrite ($fp , $message);
fclose ($fp);
doesnt work... the message will still be at the end...
http://www.php.net/manual/function.rewind.php