note 29328 modified in function.fwrite by philip
| From: | philip@php.net | Date: | Wed, 21 May 2003 16:13:41 +0000 |
| Subject: | note 29328 modified in function.fwrite by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-48755@lists.php.net to get a copy of this message | ||
[[Editors note: There is no "prepend" mode, you must essentially rewrite the entire file
after prepending contents to a string. Perhaps you will use file(), modify, implode(), then
fopen()/fwrite() it back]]
To put strings into the front of the file, you need to set place the pointer at the top of the file
when openning the file with fopen(), see fopen() for more info.
--was--
To put strings into the front of the file, you need to set place the pointer at the top of the file
when openning the file with fopen(), see fopen() for more info.
http://www.php.net/manual/en/function.fwrite.php