note 54033 added to function.ftell
| From: | mweierophinney at gmail dot com | Date: | Tue, 21 Jun 2005 17:00:04 +0000 |
| Subject: | note 54033 added to function.ftell | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-90753@lists.php.net to get a copy of this message | ||
Actually, ftell() gives more than an undefined result for append only streams; it gives the offset
from the end of the file as defined before any data was appended. So if you open a file that had
3017 characters, and append 41 characters, and then execute ftell(), the value returned will be 41.
----
Manual Page -- http://www.php.net/manual/en/function.ftell.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54033
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54033&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54033&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54033&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54033&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54033&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54033&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54033&report=yes
Search -- http://master.php.net/manage/user-notes.php