PHP » PYTHON |
login |
register |
about
|
import zlib zlib.compress( data ) gzencode(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 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). Parameters
Return ValuesThe encoded string, or FALSE if an error occurred. 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
|
more
Recently updated
more
Most requested
more
Last requests
|