note 37464 added to function.ftruncate

From: Date: Sun, 16 Nov 2003 07:07:25 +0000
Subject: note 37464 added to function.ftruncate
Groups: php.notes 
Request: Send a blank email to php-notes+get-60449@lists.php.net to get a copy of this message
I am using PHP 4.3.2 and I can confim you do need to seek to the beginning of the file before truncating and writing. I found that failing to rewind before truncating and writing caused my output file to be uninterpretable by some applications, but by rewinding first the desired result was achieved. ---- Manual Page -- http://www.php.net/manual/en/function.ftruncate.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37464 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37464&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37464&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#60449) next »