gzopen

gzopen

(PHP 4, PHP 5, PHP 7)

gzopenOpen gz-file

Description

resource gzopen ( string $filename , string $mode [, int $use_include_path = 0 ] )

Opens a gzip (.gz) file for reading or writing.

gzopen() can be used to read a file which is not in gzip format; in this case gzread() will directly read from the file without decompression.