ftruncate

(PHP 4 , PHP 5)

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. Возвращает TRUE в случае успешного завершения, FALSE в случае возникновения ошибки.

Замечание: Prior to PHP 4.3.3, ftruncate() returns an integer value of 1 on success, instead of boolean TRUE.

See also fopen() and fseek().


HIVE: All information for read only. Please respect copyright!
Hosted by hive КГБ: Киевская городская библиотека