⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 function.gzpassthru.html

📁 php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Output all remaining data on a gz-file pointer</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="function.gzopen.html">gzopen</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.gzputs.html">gzputs</a></div> <div class="up"><a href="ref.zlib.html">Zlib Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.gzpassthru" class="refentry"> <div class="refnamediv">  <h1 class="refname">gzpassthru</h1>  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">gzpassthru</span> &mdash; <span class="dc-title">   Output all remaining data on a gz-file pointer  </span></p> </div> <div class="refsect1 description">  <h3 class="title">Description</h3>  <div class="methodsynopsis dc-description">   <span class="type">int</span> <span class="methodname"><b><b>gzpassthru</b></b></span>    ( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$zp</tt></span>   )</div>  <p class="para rdfs-comment">   Reads to EOF on the given gz-file pointer from the current position and   writes the (uncompressed) results to standard output.  </p>  <blockquote><p><b class="note">Note</b>:        You may need to call <a href="function.gzrewind.html" class="function">gzrewind()</a> to reset the file    pointer to the beginning of the file if you have already written data     to it.    <br />  </p></blockquote>  <div class="tip"><b class="tip">Tip</b>   <p class="para">    If you just want to dump the contents of a file to the output buffer,     without first modifying it or seeking to a particular offset, you may     want to use the <a href="function.readgzfile.html" class="function">readgzfile()</a> function, which saves     you the <a href="function.gzopen.html" class="function">gzopen()</a> call.   </p>  </div> </div> <div class="refsect1 parameters">  <h3 class="title">Parameters</h3>  <p class="para">   <dl>    <dt>     <span class="term"><i><tt class="parameter">zp</tt></i></span>     <dd>      <p class="para">       The gz-file pointer. It must be valid, and must point to a file       successfully opened by <a href="function.gzopen.html" class="function">gzopen()</a>.      </p>     </dd>    </dt>   </dl>  </p> </div> <div class="refsect1 returnvalues">  <h3 class="title">Return Values</h3>  <p class="para">   The number of uncompressed characters read from <i><tt class="parameter">gz</tt></i>   and passed through to the input, or <b><tt>FALSE</tt></b> on error.  </p> </div> <div class="refsect1 examples">  <h3 class="title">Examples</h3>  <p class="para">   <div class="example">    <p><b>Example #1 <b>gzpassthru()</b> example</b></p>    <div class="example-contents"><div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$fp&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">gzopen</span><span style="color: #007700">(</span><span style="color: #DD0000">'file.gz'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'r'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">gzpassthru</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">gzclose</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>    </div>   </div>  </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.gzopen.html">gzopen</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.gzputs.html">gzputs</a></div> <div class="up"><a href="ref.zlib.html">Zlib Functions</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 + -