Sophie

Sophie

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

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>Make a persistent database connection</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.hw-output-document.html">hw_Output_Document</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.hw-pipedocument.html">hw_PipeDocument</a></div>
 <div class="up"><a href="ref.hw.html">Hyperwave Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.hw-pconnect" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">hw_pConnect</h1>
  <p class="verinfo">(PHP 4)</p><p class="refpurpose"><span class="refname">hw_pConnect</span> &mdash; <span class="dc-title">Make a persistent database connection</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.hw-pconnect-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">int</span> <span class="methodname"><strong>hw_pconnect</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$host</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$port</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>
   )</div>

  <p class="para rdfs-comment">
   Opens a persistent connection to a Hyperwave server.
   You can have multiple persistent connections open at once.
  </p>
 </div>

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

    <dt>

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

      <p class="para">
       The server host name.
      </p>
     </dd>

    </dt>

    <dt>

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

      <p class="para">
       The server port number.
      </p>
     </dd>

    </dt>

    <dt>

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

      <p class="para">
       The Hyperwave user name. If omitted, no identification with the server
       will be done. It is similar to identify as user anonymous.
      </p>
     </dd>

    </dt>

    <dt>

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

      <p class="para">
       The password for <em><code class="parameter">username</code></em>.
       Keep in mind, that the password is not encrypted.
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.hw-pconnect-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns a connection index on success, or <strong><code>FALSE</code></strong> if the connection could
   not be made.
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.hw-pconnect-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"> <span class="function"><a href="function.hw-connect.html" class="function" rel="rdfs-seeAlso">hw_connect()</a> - Opens a 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.hw-output-document.html">hw_Output_Document</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.hw-pipedocument.html">hw_PipeDocument</a></div>
 <div class="up"><a href="ref.hw.html">Hyperwave Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>