<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/refs.compression.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'book.zlib.php',
    1 => 'Zlib',
    2 => 'Zlib 压缩',
  ),
  'up' => 
  array (
    0 => 'refs.compression.php',
    1 => '压缩与归档扩展',
  ),
  'prev' => 
  array (
    0 => 'function.zip-read.php',
    1 => 'zip_read',
  ),
  'next' => 
  array (
    0 => 'zlib.setup.php',
    1 => '安装/配置',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/zlib/book.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/book.zlib.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="book.zlib" class="book">
 
 <h1 class="title">Zlib 压缩</h1>
 
 
 
 <div id="intro.zlib" class="preface">
  <h1 class="title">简介</h1>
  <p class="para">
   该模块能够无障碍地读写 gzip 压缩过的文件，使用大多数 <a href="book.filesystem.php" class="link">filesystem</a> 函数的版本，与
   gzip 压缩文件（以及未压缩的文件，但不能与 socket 一起使用）一起使用。
  </p>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <p class="para">
    PHP 还有用于 <var class="filename">.gz</var> 文件的 fopen 封装协议。有关 <a href="wrappers.compression.php" class="xref">zlib://</a> 的部分提供了更多信息。
   </p>
  </p></blockquote>
 </div>
 
 
 








 





 








 







 




 





<ul class="chunklist chunklist_book"><li><a href="zlib.setup.php">安装/配置</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="zlib.requirements.php">需求</a></li><li><a href="zlib.installation.php">安装</a></li><li><a href="zlib.configuration.php">运行时配置</a></li><li><a href="zlib.resources.php">资源类型</a></li></ul></li><li><a href="zlib.constants.php">预定义常量</a></li><li><a href="zlib.examples.php">示例</a></li><li><a href="ref.zlib.php">Zlib 函数</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.deflate-add.php">deflate_add</a> — Incrementally deflate data</li><li><a href="function.deflate-init.php">deflate_init</a> — Initialize an incremental deflate context</li><li><a href="function.gzclose.php">gzclose</a> — Close an open gz-file pointer</li><li><a href="function.gzcompress.php">gzcompress</a> — Compress a string</li><li><a href="function.gzdecode.php">gzdecode</a> — Decodes a gzip compressed string</li><li><a href="function.gzdeflate.php">gzdeflate</a> — Deflate a string</li><li><a href="function.gzencode.php">gzencode</a> — Create a gzip compressed string</li><li><a href="function.gzeof.php">gzeof</a> — Test for EOF on a gz-file pointer</li><li><a href="function.gzfile.php">gzfile</a> — Read entire gz-file into an array</li><li><a href="function.gzgetc.php">gzgetc</a> — Get character from gz-file pointer</li><li><a href="function.gzgets.php">gzgets</a> — Get line from file pointer</li><li><a href="function.gzgetss.php">gzgetss</a> — Get line from gz-file pointer and strip HTML tags</li><li><a href="function.gzinflate.php">gzinflate</a> — Inflate a deflated string</li><li><a href="function.gzopen.php">gzopen</a> — Open gz-file</li><li><a href="function.gzpassthru.php">gzpassthru</a> — Output all remaining data on a gz-file pointer</li><li><a href="function.gzputs.php">gzputs</a> — 别名 gzwrite</li><li><a href="function.gzread.php">gzread</a> — Binary-safe gz-file read</li><li><a href="function.gzrewind.php">gzrewind</a> — Rewind the position of a gz-file pointer</li><li><a href="function.gzseek.php">gzseek</a> — Seek on a gz-file pointer</li><li><a href="function.gztell.php">gztell</a> — Tell gz-file pointer read/write position</li><li><a href="function.gzuncompress.php">gzuncompress</a> — Uncompress a compressed string</li><li><a href="function.gzwrite.php">gzwrite</a> — Binary-safe gz-file write</li><li><a href="function.inflate-add.php">inflate_add</a> — Incrementally inflate encoded data</li><li><a href="function.inflate-get-read-len.php">inflate_get_read_len</a> — Get number of bytes read so far</li><li><a href="function.inflate-get-status.php">inflate_get_status</a> — Get decompression status</li><li><a href="function.inflate-init.php">inflate_init</a> — Initialize an incremental inflate context</li><li><a href="function.ob-gzhandler.php">ob_gzhandler</a> — ob_start 回调函数压缩输出缓冲区</li><li><a href="function.readgzfile.php">readgzfile</a> — Output a gz-file</li><li><a href="function.zlib-decode.php">zlib_decode</a> — Uncompress any raw/gzip/zlib encoded data</li><li><a href="function.zlib-encode.php">zlib_encode</a> — Compress data with the specified encoding</li><li><a href="function.zlib-get-coding-type.php">zlib_get_coding_type</a> — Returns the coding type used for output compression</li></ul></li><li><a href="class.deflatecontext.php">DeflateContext</a> — The DeflateContext class</li><li><a href="class.inflatecontext.php">InflateContext</a> — The InflateContext class</li></ul></div><?php manual_footer($setup); ?>