note 30752 added to function.ftell

From: Date: Thu, 27 Mar 2003 14:43:34 +0000
Subject: note 30752 added to function.ftell
Groups: php.notes 
Request: Send a blank email to php-notes+get-45905@lists.php.net to get a copy of this message
Another (and more convenient) way to make ftell() to return a true pointer for appended file is just issue fseek() before: $n=fopen($name,'a+'); // open for append echo ftell($n); // 0 fseek($n, 0 , SEEK_END); // set to EOF... hm! and where we was before? echo ftell($n); // 3547843 or something :) jz -- http://www.php.net/manual/en/function.ftell.php http://master.php.net/manage/user-notes.php?action=edit+30752 http://master.php.net/manage/user-notes.php?action=delete+30752 http://master.php.net/manage/user-notes.php?action=reject+30752

« previous php.notes (#45905) next »