ftruncate

 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.