(PHP 4 >= 4.0RC1)
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.