ftruncate
(PHP 4 )
ftruncate -- Truncates a file to a given length
Description
bool
ftruncate ( resource handle, int size)
Takes the filepointer, handle, and truncates the file to
length, size. Devuelve TRUE si todo se
llevó a cabo correctamente, FALSE en caso
de fallo.
Nota:
Prior to PHP 4.3.3, ftruncate() returns an
integer value of 1 on success, instead of
boolean TRUE.
See also fopen() and
fseek().