Home > PHP > Function > Zlib > gzpassthru()

gzpassthru()

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

Syntax

int gzpassthru (resource $zp)

Arguments

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

Description

Reads to EOFon the given gz-file pointer from the current position and writes the (uncompressed) results to standard output.

Version

PHP 4, 5

Return value

The number of uncompressed characters read from gz and passed through to the input, or FALSE on error.