mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 22:06:57 +08:00
124 lines
4.1 KiB
HTML
124 lines
4.1 KiB
HTML
<!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>Output a binary dump of cached files and user variables to a file</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.apc-bin-dumpfile" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">apc_bin_dumpfile</h1>
|
|
<p class="verinfo">(PECL apc >= 3.1.4)</p><p class="refpurpose"><span class="refname">apc_bin_dumpfile</span> — <span class="dc-title">Output a binary dump of cached files and user variables to a file</span></p>
|
|
|
|
</div>
|
|
|
|
<div class="refsect1 description" id="refsect1-function.apc-bin-dumpfile-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>apc_bin_dumpfile</strong></span>
|
|
( <span class="methodparam"><span class="type">array</span> <code class="parameter">$files</code></span>
|
|
, <span class="methodparam"><span class="type">array</span> <code class="parameter">$user_vars</code></span>
|
|
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$filename</code></span>
|
|
[, <span class="methodparam"><span class="type">int</span> <code class="parameter">$flags</code><span class="initializer"> = 0</span></span>
|
|
[, <span class="methodparam"><span class="type">resource</span> <code class="parameter">$context</code><span class="initializer"> = NULL</span></span>
|
|
]] ) : <span class="type">int</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
Outputs a binary dump of the given files and user variables from the APC
|
|
cache to the named file.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.apc-bin-dumpfile-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">files</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
The file names being dumped.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">user_vars</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
The user variables being dumped.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">filename</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
The filename where the dump is being saved.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">flags</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
Flags passed to the <code class="parameter">filename</code> stream. See the
|
|
<span class="function"><a href="file_put_contents.html" class="function">file_put_contents()</a></span> documentation for details.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">context</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
The context passed to the <code class="parameter">filename</code> stream. See the
|
|
<span class="function"><a href="file_put_contents.html" class="function">file_put_contents()</a></span> documentation for details.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.apc-bin-dumpfile-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
The number of bytes written to the file, otherwise
|
|
<strong><code>FALSE</code></strong> if APC is not enabled, <code class="parameter">filename</code> is an invalid file name,
|
|
<code class="parameter">filename</code> can't be opened, the file dump can't be completed
|
|
(e.g., the hard drive is out of disk space), or an unknown error was encountered.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 seealso" id="refsect1-function.apc-bin-dumpfile-seealso">
|
|
<h3 class="title">参见</h3>
|
|
<ul class="simplelist">
|
|
<li class="member"><span class="function"><a href="apc_bin_dump.html" class="function" rel="rdfs-seeAlso">apc_bin_dump()</a> - 获取给定文件和变量的二进制文件转储。</span></li>
|
|
<li class="member"><span class="function"><a href="apc_bin_load.html" class="function" rel="rdfs-seeAlso">apc_bin_load()</a> - Load a binary dump into the APC file/user cache</span></li>
|
|
</ul>
|
|
</div>
|
|
|
|
|
|
</div></div></div></body></html> |