Query: gzcompress
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GZCOMPRESS(3) 1 GZCOMPRESS(3) gzcompress - Compress a stringSYNOPSISstring gzcompress (string $data, [int $level = -1], [int $encoding = ZLIB_ENCODING_DEFLATE])DESCRIPTIONThis function compresses the given string using the ZLIB data format. For details on the ZLIB compression algorithm see the document "ZLIB Compressed Data Format Specification version 3.3" (RFC 1950). Note This is not the same as gzip compression, which includes some header data. See gzencode(3) for gzip compression.PARAMETERSo $data - The data to compress. o $level - The level of compression. Can be given as 0 for no compression up to 9 for maximum compression. If -1 is used, the default com- pression of the zlib library is used which is 6. o $encoding - One of ZLIB_ENCODING_* constants.RETURN VALUESThe compressed string or FALSE if an error occurred.EXAMPLESExample #1 gzcompress(3) example <?php $compressed = gzcompress('Compress me', 9); echo $compressed; ?>CHANGELOG+--------+-----------------------------+ |Version | | | | | | | Description | | | | +--------+-----------------------------+ | 5.4.0 | | | | | | | Added $encoding parameter. | | | | +--------+-----------------------------+SEE ALSOgzdeflate(3), gzinflate(3), gzuncompress(3), gzencode(3). PHP Documentation Group GZCOMPRESS(3)
Related Man Pages |
---|
zlib(3) - centos |
perlio::via::bzip2(3) - mojave |
zlib(3) - opendarwin |
httpdeflatestream(3) - php |
gzcompress(3) - php |
Similar Topics in the Unix Linux Community |
---|
QccPack: BETA Version-0.57-1 released |
Trouble with Awk |
Transparent compression and encryption |
Adding gzip compression to a connection using nc |
Best Compression technique ? |