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

search for in the

gzfile> <gzencode
[edit] Last updated: Fri, 24 Jun 2011

view this page in

gzeof

(PHP 4, PHP 5)

gzeofآزمایش EOF در اشاره‌گر gz-file

Description

int gzeof ( resource $zp )

آزمایش اشاره‌گر فایل GZ داده شده برای EOF.

Parameters

zp

اشاره‌گر gz-file. باید صحیح باشد و به فایل باز شده موفق توسط gzopen() اشاره کند.

Return Values

بازگرداندن TRUE اگر اشاره‌گر gz-file در EOF باشد یا خطا رخ دهد; در غیر این صورت بازگرداندن FALSE.

Examples

Example #1 مثال gzeof()

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



add a note add a note User Contributed Notes gzeof - [1 notes]
up
0
thomas at poindessous dot com
5 years ago
Be careful with this example. if gzopen doesn't return a valid handler, gzeof will do a nice loop.

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