Sophie

Sophie

distrib > Mageia > 7 > aarch64 > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 3978

php-manual-en-7.2.11-1.mga7.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 a persistent connection to an InterBase database</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.ibase-param-info.html">ibase_param_info</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.ibase-prepare.html">ibase_prepare</a></div>
 <div class="up"><a href="ref.ibase.html">Firebird/InterBase Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.ibase-pconnect" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ibase_pconnect</h1>
  <p class="verinfo">(PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">ibase_pconnect</span> &mdash; <span class="dc-title">Open a persistent connection to an InterBase database</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.ibase-pconnect-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">resource</span> <span class="methodname"><strong>ibase_pconnect</strong></span>
    ([ <span class="methodparam"><span class="type">string</span> <code class="parameter">$database</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$username</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$password</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$charset</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$buffers</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$dialect</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$role</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$sync</code></span>
  ]]]]]]]] )</div>

  <p class="para rdfs-comment">
   Opens a persistent connection to an InterBase database.
  </p>
  <p class="para">
   <span class="function"><strong>ibase_pconnect()</strong></span> acts very much like
   <span class="function"><a href="function.ibase-connect.html" class="function">ibase_connect()</a></span> with two major differences.
  </p>
  <p class="para">
   First, when connecting, the function will first try to find a (persistent)
   link that&#039;s already opened with the same parameters. If one is found, an
   identifier for it will be returned instead of opening a new connection.
  </p>
  <p class="para">
   Second, the connection to the InterBase server will not be closed when the
   execution of the script ends. Instead, the link will remain open for
   future use (<span class="function"><a href="function.ibase-close.html" class="function">ibase_close()</a></span> will not close links
   established by <span class="function"><strong>ibase_pconnect()</strong></span>). This type of link is
   therefore called &#039;persistent&#039;.
  </p>
 </div>


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

    
     <dt>
<code class="parameter">database</code></dt>

     <dd>

      <p class="para">
       The <code class="parameter">database</code> argument has to be a valid path to
       database file on the server it resides on. If the server is not local,
       it must be prefixed with either &#039;hostname:&#039; (TCP/IP), &#039;//hostname/&#039;
       (NetBEUI) or &#039;hostname@&#039; (IPX/SPX), depending on the connection
       protocol used.   
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">username</code></dt>

     <dd>

      <p class="para">
       The user name. Can be set with the
       <em>ibase.default_user</em> <var class="filename">php.ini</var> directive.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">password</code></dt>

     <dd>

      <p class="para">
       The password for <code class="parameter">username</code>. Can be set with the
       <em>ibase.default_password</em> <var class="filename">php.ini</var> directive.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">charset</code></dt>

     <dd>

      <p class="para">
       <code class="parameter">charset</code> is the default character set for a
       database.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">buffers</code></dt>

     <dd>

      <p class="para">
       <code class="parameter">buffers</code> is the number of database buffers to
       allocate for the server-side cache. If 0 or omitted, server chooses
       its own default.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">dialect</code></dt>

     <dd>

      <p class="para">
       <code class="parameter">dialect</code> selects the default SQL dialect for any
       statement executed within a connection, and it defaults to the highest
       one supported by client libraries. Functional only with InterBase 6
       and up.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">role</code></dt>

     <dd>

      <p class="para">
       Functional only with InterBase 5 and up.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">sync</code></dt>

     <dd>

      <p class="para">
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ibase-pconnect-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns an InterBase link identifier on success, or <strong><code>FALSE</code></strong> on error.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.ibase-pconnect-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.ibase-close.html" class="function" rel="rdfs-seeAlso">ibase_close()</a> - Close a connection to an InterBase database</span></li>
    <li class="member"><span class="function"><a href="function.ibase-connect.html" class="function" rel="rdfs-seeAlso">ibase_connect()</a> - Open a connection to a 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.ibase-param-info.html">ibase_param_info</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.ibase-prepare.html">ibase_prepare</a></div>
 <div class="up"><a href="ref.ibase.html">Firebird/InterBase Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>