Opens a gzip (.gz) file for reading or writing.
The file name.
As in fopen() (
wb) but can also include a compression level
wb9) or a strategy:
filtered data as in
Huffman only compression as in
(See the description of deflateInit2 in
more information about the strategy parameter.)
You can set this optional parameter to
1, if you
want to search for the file in the include_path too.
Returns a file pointer to the file opened, after that, everything you read from this file descriptor will be transparently decompressed and what you write gets compressed.
If the open fails, the function returns
$fp = gzopen("/tmp/file.gz", "r");