?? zlib.configuration.html
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Runtime Configuration</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="zlib.installation.html">Installation</a></div> <div class="next" style="text-align: right; float: right;"><a href="zlib.resources.html">Resource Types</a></div> <div class="up"><a href="zlib.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="zlib.configuration" class="section"> <h2 class="title">Runtime Configuration</h2> <p class="simpara">The behaviour of these functions is affected by settings in <var class="filename">php.ini</var>.</p> <p class="para"> 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 <a href="configuration.html#configuration.file" class="link">configuration file</a> <var class="filename">php.ini</var>. <table border="5"> <caption><b>Zlib Configuration Options</b></caption> <colgroup> <thead valign="middle"> <tr valign="middle"> <th colspan="1">Name</th> <th colspan="1">Default</th> <th colspan="1">Changeable</th> <th colspan="1">Changelog</th> </tr> </thead> <tbody valign="middle" class="tbody"> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">zlib.output_compression</td> <td colspan="1" rowspan="1" align="left">"0"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td> <td colspan="1" rowspan="1" align="left">Available since PHP 4.0.5.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">zlib.output_compression_level</td> <td colspan="1" rowspan="1" align="left">"-1"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td> <td colspan="1" rowspan="1" align="left">Available since PHP 4.3.0.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">zlib.output_handler</td> <td colspan="1" rowspan="1" align="left">""</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td> <td colspan="1" rowspan="1" align="left">Available since PHP 4.3.0.</td> </tr> </tbody> </colgroup> </table> For further details and definitions of the PHP_INI_* constants, see the <a href="ini.html" class="xref">php.ini directives</a>.</p> <p class="para">Here's a short explanation ofthe configuration directives.</p> <p class="para"> <dl> <dt id="ini.zlib.output-compression"> <span class="term"> <i><tt class="parameter">zlib.output_compression</tt></i> <a href="language.types.boolean.html" class="type boolean">boolean</a>/<a href="language.types.integer.html" class="type integer">integer</a> </span> <dd> <p class="para"> Whether to transparently compress pages. If this option is set to "On" in <var class="filename">php.ini</var> 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. In runtime, it can be set only before sending any output. </p> <p class="para"> This option also accepts integer values instead of boolean "On"/"Off", using this you can set the output buffer size (default is 4KB). </p> <blockquote><p><b class="note">Note</b>: <a href="outcontrol.configuration.html#ini.output-handler" class="link">output_handler</a> must be empty if this is set 'On' ! Instead you must use zlib.output_handler. <br /> </p></blockquote> </dd> </dt> <dt id="ini.zlib.output-compression-level"> <span class="term"> <i><tt class="parameter">zlib.output_compression_level</tt></i> <a href="language.types.integer.html" class="type integer">integer</a> </span> <dd> <p class="para"> Compression level used for transparent output compression. </p> </dd> </dt> <dt id="ini.zlib.output-handler"> <span class="term"> <i><tt class="parameter">zlib.output_handler</tt></i> <a href="language.types.string.html" class="type string">string</a> </span> <dd> <p class="para"> You cannot specify additional output handlers if zlib.output_compression is activated here. This setting does the same as <a href="outcontrol.configuration.html#ini.output-handler" class="link"> output_handler</a> but in a different order. </p> </dd> </dt> </dl> </p></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="zlib.installation.html">Installation</a></div> <div class="next" style="text-align: right; float: right;"><a href="zlib.resources.html">Resource Types</a></div> <div class="up"><a href="zlib.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -