Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gzclose(3) [php man page]

GZCLOSE(3)								 1								GZCLOSE(3)

gzclose - Close an open gz-file pointer

SYNOPSIS
bool gzclose (resource $zp) DESCRIPTION
Closes the given gz-file pointer. PARAMETERS
o $zp - The gz-file pointer. It must be valid, and must point to a file successfully opened by gzopen(3). RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 gzclose(3) example <?php $gz = gzopen('somefile.gz','w9'); gzputs ($gz, 'I was added to somefile.gz'); gzclose($gz); ?> SEE ALSO
gzopen(3). PHP Documentation Group GZCLOSE(3)

Check Out this Related Man Page

GZPASSTHRU(3)								 1							     GZPASSTHRU(3)

gzpassthru - Output all remaining data on a gz-file pointer

SYNOPSIS
int gzpassthru (resource $zp) DESCRIPTION
Reads to EOF on the given gz-file pointer from the current position and writes the (uncompressed) results to standard output. Note You may need to call gzrewind(3) to reset the file pointer to the beginning of the file if you have already written data to it. Tip If you just want to dump the contents of a file to the output buffer, without first modifying it or seeking to a particular offset, you may want to use the readgzfile(3) function, which saves you the gzopen(3) call. PARAMETERS
o $zp - The gz-file pointer. It must be valid, and must point to a file successfully opened by gzopen(3). RETURN VALUES
The number of uncompressed characters read from $gz and passed through to the input, or FALSE on error. EXAMPLES
Example #1 gzpassthru(3) example <?php $fp = gzopen('file.gz', 'r'); gzpassthru($fp); gzclose($fp); ?> PHP Documentation Group GZPASSTHRU(3)
Man Page