Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 3847

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 a persistent connection to an Ingres database</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.ingres-num-rows.html">ingres_num_rows</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.ingres-prepare.html">ingres_prepare</a></div>
 <div class="up"><a href="ref.ingres.html">Ingres Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.ingres-pconnect" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ingres_pconnect</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.2, PHP 5 &lt;= 5.0.5, PECL ingres &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">ingres_pconnect</span> &mdash; <span class="dc-title">Open a persistent connection to an Ingres database</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.ingres-pconnect-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">resource</span> <span class="methodname"><strong>ingres_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">array</span> <code class="parameter">$options</code></span>
  ]]]] )</div>

  <p class="para rdfs-comment">
   Open a persistent connection to an Ingres database.
  </p>
  <p class="para">
   There are only two differences between this function and 
    <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span>: First, when connecting, the
   function will initially try to find a (persistent) link that is
   already opened with the same parameters.  If one is found, an
   identifier for it will be returned instead of opening a new
   connection. Second, the connection to the Ingres 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.ingres-close.html" class="function">ingres_close()</a></span> will not close links
   established by  <span class="function"><strong>ingres_pconnect()</strong></span>). This type
   of link is therefore called &quot;persistent&quot;.
  </p>
 </div>


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

    <dt>

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

      <p class="para">
       The database name. Must follow the syntax:
      </p>
      <p class="para">
       <var class="varname"><var class="varname">[vnode::]dbname[/svr_class]</var></var>
      </p>
     </dd>

    </dt>

    <dt>

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

      <p class="para">
       The Ingres user name
      </p>
     </dd>

    </dt>

    <dt>

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

      <p class="para">
       The password associated with <em><code class="parameter">username</code></em>
      </p>
     </dd>

    </dt>

    <dt>

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

      <p class="para">
       See  <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span> for the list of options that
       can be passed
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ingres-pconnect-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns an Ingres link resource on success or <strong><code>FALSE</code></strong> on failure
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.ingres-pconnect-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"> <span class="function"><a href="function.ingres-connect.html" class="function" rel="rdfs-seeAlso">ingres_connect()</a> - Open a connection to an Ingres database</span></li>
    <li class="member"> <span class="function"><a href="function.ingres-close.html" class="function" rel="rdfs-seeAlso">ingres_close()</a> - Close an Ingres database connection</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.ingres-num-rows.html">ingres_num_rows</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.ingres-prepare.html">ingres_prepare</a></div>
 <div class="up"><a href="ref.ingres.html">Ingres Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>