Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 2565

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!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><div class="manualnavbar" 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> &mdash; <span class="dc-title">Open database persistently</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.dba-popen-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">resource</span> <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>
  ]] )</div>

  <p class="para rdfs-comment">
    <span class="function"><strong>dba_popen()</strong></span> establishes a persistent database instance
   for <em><code class="parameter">path</code></em> with <em><code class="parameter">mode</code></em> using
   <em><code class="parameter">handler</code></em>.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.dba-popen-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">path</code></em></span>
     <dd>

      <p class="para">
       Commonly a regular path in your filesystem.
     </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">mode</code></em></span>
     <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&#039;t currently exist,
       and <em>n</em> for create, truncate and read/write access.
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">handler</code></em></span>
     <dd>

      <p class="para">
       The name of the <a href="dba.requirements.html" class="link">handler</a> which
       shall be used for accessing <em><code class="parameter">path</code></em>. 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>

    </dt>

   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.dba-popen-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns a positive handle on success or <strong><code>FALSE</code></strong> on failure.
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.dba-popen-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"> <span class="function"><a href="function.dba-open.html" class="function" rel="rdfs-seeAlso">dba_open()</a> - Open database</span></li>
    <li class="member"> <span class="function"><a href="function.dba-close.html" class="function" rel="rdfs-seeAlso">dba_close()</a> - Close a DBA database</span></li>
   </ul>
  </p>
 </div>

</div><hr /><div class="manualnavbar" 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>