2002-09-16 20:46:37 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2009-07-11 09:23:09 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-06-20 22:25:43 +00:00
|
|
|
<section xml:id="zlib.configuration" xmlns="http://docbook.org/ns/docbook">
|
2002-09-16 20:46:37 +00:00
|
|
|
&reftitle.runtime;
|
|
|
|
&extension.runtime;
|
|
|
|
<para>
|
2002-10-10 05:01:31 +00:00
|
|
|
The zlib extension offers the option to transparently compress
|
|
|
|
your pages on-the-fly, if the requesting browser supports
|
|
|
|
this. Therefore there are three options in the <link
|
|
|
|
linkend="configuration.file">configuration file</link> &php.ini;.
|
2002-09-16 20:46:37 +00:00
|
|
|
<table>
|
2002-10-10 05:01:31 +00:00
|
|
|
<title>Zlib Configuration Options</title>
|
2005-02-22 17:36:12 +00:00
|
|
|
<tgroup cols="4">
|
2002-09-16 20:46:37 +00:00
|
|
|
<thead>
|
|
|
|
<row>
|
2002-10-10 05:01:31 +00:00
|
|
|
<entry>Name</entry>
|
|
|
|
<entry>Default</entry>
|
|
|
|
<entry>Changeable</entry>
|
2005-02-22 17:36:12 +00:00
|
|
|
<entry>Changelog</entry>
|
2002-09-16 20:46:37 +00:00
|
|
|
</row>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<row>
|
2009-01-09 17:33:40 +00:00
|
|
|
<entry><link linkend="ini.zlib.output-compression">zlib.output_compression</link></entry>
|
2005-02-22 17:36:12 +00:00
|
|
|
<entry>"0"</entry>
|
2003-03-24 21:54:26 +00:00
|
|
|
<entry>PHP_INI_ALL</entry>
|
2005-02-22 17:36:12 +00:00
|
|
|
<entry>Available since PHP 4.0.5.</entry>
|
2002-09-16 20:46:37 +00:00
|
|
|
</row>
|
|
|
|
<row>
|
2009-01-09 17:33:40 +00:00
|
|
|
<entry><link linkend="ini.zlib.output-compression-level">zlib.output_compression_level</link></entry>
|
2002-09-16 20:46:37 +00:00
|
|
|
<entry>"-1"</entry>
|
|
|
|
<entry>PHP_INI_ALL</entry>
|
2005-02-22 17:36:12 +00:00
|
|
|
<entry>Available since PHP 4.3.0.</entry>
|
2002-09-16 20:46:37 +00:00
|
|
|
</row>
|
|
|
|
<row>
|
2009-01-09 17:33:40 +00:00
|
|
|
<entry><link linkend="ini.zlib.output-handler">zlib.output_handler</link></entry>
|
2002-09-16 20:46:37 +00:00
|
|
|
<entry>""</entry>
|
|
|
|
<entry>PHP_INI_ALL</entry>
|
2005-02-22 17:36:12 +00:00
|
|
|
<entry>Available since PHP 4.3.0.</entry>
|
2002-09-16 20:46:37 +00:00
|
|
|
</row>
|
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</table>
|
2005-02-15 09:46:10 +00:00
|
|
|
&ini.php.constants;
|
2002-09-16 20:46:37 +00:00
|
|
|
</para>
|
2003-05-01 21:52:58 +00:00
|
|
|
|
|
|
|
&ini.descriptions.title;
|
|
|
|
|
2002-09-16 20:46:37 +00:00
|
|
|
<para>
|
|
|
|
<variablelist>
|
2007-06-20 22:25:43 +00:00
|
|
|
<varlistentry xml:id="ini.zlib.output-compression">
|
2002-09-16 20:46:37 +00:00
|
|
|
<term>
|
|
|
|
<parameter>zlib.output_compression</parameter>
|
2002-10-10 05:01:31 +00:00
|
|
|
<type>boolean</type>/<type>integer</type>
|
2002-09-16 20:46:37 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2002-10-10 05:01:31 +00:00
|
|
|
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.
|
2005-07-11 09:42:51 +00:00
|
|
|
In runtime, it can be set only before sending any output.
|
2002-09-16 20:46:37 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
2002-10-10 05:01:31 +00:00
|
|
|
This option also accepts integer values instead of boolean
|
|
|
|
"On"/"Off", using this you can set the output buffer size
|
|
|
|
(default is 4KB).
|
2002-09-16 20:46:37 +00:00
|
|
|
</para>
|
|
|
|
<note>
|
|
|
|
<para>
|
2002-10-10 05:01:31 +00:00
|
|
|
<link linkend="ini.output-handler">output_handler</link> must be
|
2009-04-19 09:46:17 +00:00
|
|
|
empty if this is set 'On' ! Instead you must use <literal>zlib.output_handler</literal>.
|
2002-09-16 20:46:37 +00:00
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2007-06-20 22:25:43 +00:00
|
|
|
<varlistentry xml:id="ini.zlib.output-compression-level">
|
2002-09-16 20:46:37 +00:00
|
|
|
<term>
|
|
|
|
<parameter>zlib.output_compression_level</parameter>
|
2002-10-10 05:01:31 +00:00
|
|
|
<type>integer</type>
|
2002-09-16 20:46:37 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2009-08-07 08:39:00 +00:00
|
|
|
Compression level used for transparent output compression. Specify a
|
|
|
|
value between 0 (no compression) to 9 (most compression). The default
|
|
|
|
value, -1, lets the server decide which level to use.
|
2002-09-16 20:46:37 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2007-06-20 22:25:43 +00:00
|
|
|
<varlistentry xml:id="ini.zlib.output-handler">
|
2002-09-16 20:46:37 +00:00
|
|
|
<term>
|
|
|
|
<parameter>zlib.output_handler</parameter>
|
|
|
|
<type>string</type>
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2002-10-10 05:01:31 +00:00
|
|
|
You cannot specify additional output handlers if zlib.output_compression
|
|
|
|
is activated here. This setting does the same as <link linkend="ini.output-handler">
|
|
|
|
output_handler</link> but in a different order.
|
2002-09-16 20:46:37 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2002-09-16 20:46:37 +00:00
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|
|
|
|
|
|
|
|
|