downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

dio_write> <dio_tcsetattr
[edit] Last updated: Fri, 23 Mar 2012

view this page in

dio_truncate

(PHP 4 >= 4.2.0, PHP 5 <= 5.0.5)

dio_truncateDosya tanıtıcısındaki bayt sayısını sınırlar

Açıklama

bool dio_truncate ( resource $dt , int $uzunluk )

dio_truncate() işlevi, bir dosyanın içeriğini uzunluk baytla sınırlar.

Dosya belirtilen uzunluktan uzunsa fazlalık kaybedilir. Kısaysa ya dosya boyu değişmeden kalır ya da boş kısımlar sıfır baytları olarak okunur.

Değiştirgeler

dt

dio_open() işlevinden dönmüş bir dosya tanıtıcısı.

uzunluk

Bayt cinsinden kırpma uzunluğu.

Dönen Değerler

Başarı durumunda TRUE, başarısızlık durumunda FALSE döner.

Notlar

Bilginize: Bu işlev Windows sistemlerinde çalışmaz.



add a note add a note User Contributed Notes dio_truncate
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites