note 53812 added to function.fopen
| From: | MissLinux at osu1 dot php dot net | Date: | Tue, 14 Jun 2005 06:59:44 +0000 |
| Subject: | note 53812 added to function.fopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-90393@lists.php.net to get a copy of this message | ||
While i was experimenting with fopen, i noticed following:
if you open a file in a+ and want to write at the beginning of the file, it appends the stirng at
the end. it doesn't care where the fp is. if opened in a+ it always appends.
----
Manual Page -- http://www.php.net/manual/en/function.fopen.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+53812
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53812&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53812&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53812&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53812&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53812&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+53812&report=yes
Search -- http://master.php.net/manage/user-notes.php