note 37464 deleted from function.ftruncate by bjori

From: Date: Thu, 16 Nov 2006 16:19:09 +0000
Subject: note 37464 deleted from function.ftruncate by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-119807@lists.php.net to get a copy of this message
Note Submitter: stevedegrace von yahoo point ca ---- 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.

« previous php.notes (#119807) next »