Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : Zlib Compression Functions : gzeof

gzeof

Test for end-of-file on a gz-file pointer (PHP 4, PHP 5)
int gzeof ( resource zp )

Example 2724. gzeof() example

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

Code Examples / Notes » gzeof

thomas

Be careful with this example. if gzopen doesn't return a valid handler, gzeof will do a nice loop.

Change Language


Follow Navioo On Twitter
gzclose
gzcompress
gzdecode
gzdeflate
gzencode
gzeof
gzfile
gzgetc
gzgets
gzgetss
gzinflate
gzopen
gzpassthru
gzputs
gzread
gzrewind
gzseek
gztell
gzuncompress
gzwrite
readgzfile
zlib_get_coding_type
eXTReMe Tracker