PHP Manualgzencode(PHP 4 >= 4.0.4, PHP 5) gzencode — Create a gzip compressed string Description
string gzencode
( string
$data
[, int $level = -1
[, int $encoding_mode = FORCE_GZIP
]] )
This function returns a compressed version of the input
For more information on the GZIP file format, see the document: » GZIP file format specification version 4.3 (RFC 1952). Parameters
Return Values
The encoded string, or Changelog
ExamplesThe resulting data contains the appropriate headers and data structure to make a standard .gz file, e.g.: Example #1 Creating a gzip file
<?php See Also
![]() |
PHP-Index
New Tutorial entries
|