<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Deflate output handler</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.http-negotiate-language.html">http_negotiate_language</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.ob-etaghandler.html">ob_etaghandler</a></div> <div class="up"><a href="ref.http.html">HTTP Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.ob-deflatehandler" class="refentry"> <div class="refnamediv"> <h1 class="refname">ob_deflatehandler</h1> <p class="verinfo">(PECL pecl_http >= 0.21.0)</p><p class="refpurpose"><span class="refname">ob_deflatehandler</span> — <span class="dc-title">Deflate output handler</span></p> </div> <div class="refsect1 description" id="refsect1-function.ob-deflatehandler-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">string</span> <span class="methodname"><strong>ob_deflatehandler</strong></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span> , <span class="methodparam"><span class="type">int</span> <code class="parameter">$mode</code></span> )</div> <p class="para rdfs-comment"> For use with <span class="function"><a href="function.ob-start.html" class="function">ob_start()</a></span>. </p> <blockquote class="note"><p><strong class="note">Note</strong>: <span class="simpara">This output handler can only be used once.</span></p></blockquote> <p class="para"> The deflate output buffer handler can only be used once. </p> <p class="para"> It conflicts with <span class="function"><a href="function.ob-gzhandler.html" class="function">ob_gzhandler()</a></span> and <a href="ref.zlib.html" class="link">zlib.output_compression</a> as well and should not be used after <a href="ref.mbstring.html" class="link">mbstring</a> extension's <span class="function"><a href="function.mb-output-handler.html" class="function">mb_output_handler()</a></span> and <a href="ref.session.html" class="link">session</a> extension's URL-Rewriter (AKA session.use_trans_sid). </p> </div> <div class="refsect1 seealso" id="refsect1-function.ob-deflatehandler-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="function"><a href="function.ob-inflatehandler.html" class="function" rel="rdfs-seeAlso">ob_inflatehandler()</a> - Inflate output handler</span></li> <li class="member"> <span class="function"><a href="function.ob-start.html" class="function" rel="rdfs-seeAlso">ob_start()</a> - Turn on output buffering</span></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.http-negotiate-language.html">http_negotiate_language</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.ob-etaghandler.html">ob_etaghandler</a></div> <div class="up"><a href="ref.http.html">HTTP Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>