PHP documentation.
Home / PHP / Manual / ...
(PHP 4 >= 4.0.0)
int ftruncate (int fp, int size)
int ftruncate
Takes the filepointer, fp, and truncates the file to length, size. This function returns TRUE on success and FALSE on failure.
Most recently updated on 11 May, 2003