mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-17 21:16:57 +08:00
100 lines
3.5 KiB
HTML
100 lines
3.5 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>Open database persistently</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.dba-popen" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">dba_popen</h1>
|
|
<p class="verinfo">(PHP 4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">dba_popen</span> — <span class="dc-title">Open database persistently</span></p>
|
|
|
|
</div>
|
|
<div class="refsect1 description" id="refsect1-function.dba-popen-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>dba_popen</strong></span>
|
|
( <span class="methodparam"><span class="type">string</span> <code class="parameter">$path</code></span>
|
|
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$mode</code></span>
|
|
[, <span class="methodparam"><span class="type">string</span> <code class="parameter">$handler</code></span>
|
|
[, <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$...</code></span>
|
|
]] ) : <span class="type">resource</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
<span class="function"><strong>dba_popen()</strong></span> establishes a persistent database instance
|
|
for <code class="parameter">path</code> with <code class="parameter">mode</code> using
|
|
<code class="parameter">handler</code>.
|
|
</p>
|
|
</div>
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.dba-popen-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<p class="para">
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">path</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
Commonly a regular path in your filesystem.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">mode</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
It is <em>r</em> for read access, <em>w</em> for
|
|
read/write access to an already existing database, <em>c</em>
|
|
for read/write access and database creation if it doesn't currently exist,
|
|
and <em>n</em> for create, truncate and read/write access.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">handler</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
The name of the <a href="dba.requirements.html" class="link">handler</a> which
|
|
shall be used for accessing <code class="parameter">path</code>. It is passed
|
|
all optional parameters given to <span class="function"><strong>dba_popen()</strong></span> and
|
|
can act on behalf of them.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</p>
|
|
</div>
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.dba-popen-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
Returns a positive handle on success 或者在失败时返回 <strong><code>FALSE</code></strong>.
|
|
</p>
|
|
</div>
|
|
|
|
<div class="refsect1 seealso" id="refsect1-function.dba-popen-seealso">
|
|
<h3 class="title">参见</h3>
|
|
<p class="para">
|
|
<ul class="simplelist">
|
|
<li class="member"><span class="function"><a href="dba_open.html" class="function" rel="rdfs-seeAlso">dba_open()</a> - Open database</span></li>
|
|
<li class="member"><span class="function"><a href="dba_close.html" class="function" rel="rdfs-seeAlso">dba_close()</a> - Close a DBA database</span></li>
|
|
</ul>
|
|
</p>
|
|
</div>
|
|
|
|
</div></div></div></body></html> |