📄 function.dba-popen.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Open database persistently</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.dba-optimize.html">dba_optimize</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.dba-replace.html">dba_replace</a></div> <div class="up"><a href="ref.dba.html">DBA Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.dba-popen" class="refentry"> <div class="refnamediv"> <h1 class="refname">dba_popen</h1> <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">dba_popen</span> — <span class="dc-title">Open database persistently</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">resource</span> <span class="methodname"><b><b>dba_popen</b></b></span> ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$path</tt></span> , <span class="methodparam"><span class="type">string</span> <tt class="parameter">$mode</tt></span> [, <span class="methodparam"><span class="type">string</span> <tt class="parameter">$handler</tt></span> [, <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <tt class="parameter">$...</tt></span> ]] )</div> <p class="para rdfs-comment"> <b>dba_popen()</b> establishes a persistent database instance for <i><tt class="parameter">path</tt></i> with <i><tt class="parameter">mode</tt></i> using <i><tt class="parameter">handler</tt></i>. </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">path</tt></i></span> <dd> <p class="para"> Commonly a regular path in your filesystem. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">mode</tt></i></span> <dd> <p class="para"> It is <i>r</i> for read access, <i>w</i> for read/write access to an already existing database, <i>c</i> for read/write access and database creation if it doesn't currently exist, and <i>n</i> for create, truncate and read/write access. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">handler</tt></i></span> <dd> <p class="para"> The name of the <a href="dba.setup.html#dba.requirements" class="link">handler</a> which shall be used for accessing <i><tt class="parameter">path</tt></i>. It is passed all optional parameters given to <b>dba_popen()</b> and can act on behalf of them. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns a positive handle on success, or <b><tt>FALSE</tt></b> on failure. </p> </div> <div class="refsect1 seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"><a href="function.dba-open.html" class="function" rel="rdfs-seeAlso">dba_open()</a></li> <li class="member"><a href="function.dba-close.html" class="function" rel="rdfs-seeAlso">dba_close()</a></li> </ul> </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.dba-optimize.html">dba_optimize</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.dba-replace.html">dba_replace</a></div> <div class="up"><a href="ref.dba.html">DBA 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 + -