From ff43ef78c992875780a5eec95556abf7165cfddb Mon Sep 17 00:00:00 2001 From: Stefan Roehrich Date: Sun, 28 Jul 2002 17:22:09 +0000 Subject: [PATCH] Added documentation of zlib runtime configuration options. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@90218 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/zlib/reference.xml | 82 +++++++++++++++++++++++++++++++++++- 1 file changed, 80 insertions(+), 2 deletions(-) diff --git a/reference/zlib/reference.xml b/reference/zlib/reference.xml index 58ee4ac6f3..4198d7834b 100644 --- a/reference/zlib/reference.xml +++ b/reference/zlib/reference.xml @@ -1,5 +1,5 @@ - + Zlib Compression Functions Zlib @@ -46,7 +46,85 @@
&reftitle.runtime; - &no.config; + + The zlib extension offers the option to transparently compress + your pages on-the-fly, if the requesting browser supports + this. Therefore there are two options in the configuration file &php.ini;. + + + Zlib Configuration Options + + + + Name + Default + Changeable + + + + + zlib.output_compression + "0" + PHP_INI_ALL + + + zlib.output_compression_level + "-1" + PHP_INI_ALL + + + +
+ + For further details and definition of the PHP_INI_* constants see + ini_set. +
+ + + Here is a short explanation of the configuration directives. + + + + zlib.output_compression + boolean/integer + + + + Whether to transparently compress pages. If this option is set + to "On" in &php.ini or the Apache configuration, pages are + compressed if the browser sends an "Accept-Encoding: gzip" or + "deflate" header. "Content-Encoding: gzip" (respectively + "deflate") and "Vary: Accept-Encoding" headers are added to + the output. + + + You can use ini_set to disable this in + your script if the headers aren't already sent. If you output + a "Content-Type: image/" header the compression is disabled, + too (in order to circumvent a Netscape bug). You can reenable + it, if you add "ini_set('zlib.output_compression', 'On')" + after the header call which added the image content-type. + + + This option also accepts integer values instead of boolean + "On"/"Off", using this you can set the output buffer size. + + + + + + zlib.output_compression_level + integer + + + + Compression level used for transparent output compression. + + + + +