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

search for in the

gzfile> <gzencode
[edit] Last updated: Fri, 23 Mar 2012

view this page in

gzeof

(PHP 4, PHP 5)

gzeofGzipli dosya tanıtıcında dosya sonunu sınar

Açıklama

int gzeof ( resource $dt )

Gzipli dosya tanıtıcısında dosya sonuna gelinmişse TRUE döndürür.

Değiştirgeler

dt

Gzipli dosya tanıtıcısı. gzopen() tarafından açılmış bir dosyayı gösteren geçerli bir tanıtıcı olmalıdır.

Dönen Değerler

Gzipli dosya tanıtıcısında dosya sonuna gelinmişse veya bir hata oluşmuşsa TRUE aksi takdirde FALSE döndürür.

Örnekler

Örnek 1 - gzeof() örneği

<?php
$gz 
gzopen('birdosya.gz''r');
while (!
gzeof($gz)) {
  echo 
gzgetc($gz);
}
gzclose($gz);
?>



add a note add a note User Contributed Notes gzeof
thomas at poindessous dot com 21-Jun-2007 01:44
Be careful with this example. if gzopen doesn't return a valid handler, gzeof will do a nice loop.

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