note 24659 added to function.fseek

From: Date: Sat, 24 Aug 2002 21:12:06 +0000
Subject: note 24659 added to function.fseek
Groups: php.notes 
Request: Send a blank email to php-notes+get-35554@lists.php.net to get a copy of this message
The following call moves to the end of file (i.e. just after the last byte of the file):     fseek($fp, 0, SEEK_END); It can be used to tell the size of an opened file when the file name is unknown and can't be used with the filesize() function:     fseek($fp, 0, SEEK_END);     $filesize = ftell($fp); The following call moves to the begining of file:     fseek($fp, 0, SEEK_SET); It is equivalent to:     rewind($fp); -- http://www.php.net/manual/en/function.fseek.php http://master.php.net/manage/user-notes.php?action=edit+24659 http://master.php.net/manage/user-notes.php?action=delete+24659 http://master.php.net/manage/user-notes.php?action=reject+24659

« previous php.notes (#35554) next »