|
PHP5中文手册
gzencode(PHP 4 >= 4.0.4, PHP 5) gzencode — Create a gzip compressed string 说明
string gzencode
( string $data
[, int $level
[, int $encoding_mode
]] )
This function returns a compressed version of the input data compatible with the output of the gzip program. For more information on the GZIP file format, see the document: » GZIP file format specification version 4.3 (RFC 1952). 参数
返回值The encoded string, or FALSE if an error occurred. 更新日志
范例The resulting data contains the appropriate headers and data structure to make a standard .gz file, e.g.: Example#1 Creating a gzip file
<?php |