PHP.nl

gzeof

gzeof

Test for EOF on a gz-file pointer

bool **gzeof** resource $stream

Tests the given GZ file pointer for .

stream The gz-file pointer. It must be valid, and must point to a file successfully opened by . gzopen

Returns true if the gz-file pointer is at or an error occurs; otherwise returns false.

Voorbeeld: example

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