ftruncate

(PHP 4 )

ftruncate -- 将文件截断到给定的长度

说明

bool ftruncate ( resource handle, int size)

接受文件指针 handle 作为参数,并将文件大小截取为 size。如果成功则返回 TRUE,失败则返回 FALSE