bool ftruncate ( resource $handle , int $size )
Takes the filepointer, handle, and truncates the file to length, size.
Returns TRUE on success or FALSE on failure.