PHP Manual
Prev |  | Next

# gzpassthru

(PHP 3 <= 3.0.18, PHP 4 >= 4.0.0)

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

## Description

``int gzpassthru` (int zp)`

Reads to EOF on the given gz-file pointer and writes the (uncompressed) results to standard output.

If an error occurs, returns `FALSE`.

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

The gz-file is closed when gzpassthru() is done reading it (leaving `zp` useless).

Prev | Home | Next
gzopen | Up | gzputs