downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<gzencodegzfile>
Last updated: Thu, 26 Jun 2008

gzeof

(PHP 4, PHP 5)

gzeof — Test for end-of-file on a gz-file pointer

Description

int gzeof ( resource $zp )

Tests the given GZ file pointer for EOF (end-of-file).

Parameters

zp

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

Return Values

Returns TRUE if the gz-file pointer is at EOF or an error occurs; otherwise returns FALSE.

Examples

Example #1 gzeof() example

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



add a noteadd a note User Contributed Notes
Test for end-of-file on a gz-file pointer
There are no user contributed notes for this page.




<gzencodegzfile>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs