📄 function.ingres-pconnect.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Open a persistent connection to an Ingres II database</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.ingres-num-rows.html">ingres_num_rows</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.ingres-query.html">ingres_query</a></div> <div class="up"><a href="ref.ingres.html">Ingres II 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 >= 4.0.2, PHP 5 <= 5.0.5, PECL ingres:1.0-1.4.3)</p><p class="refpurpose"><span class="refname">ingres_pconnect</span> — <span class="dc-title">Open a persistent connection to an Ingres II database</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>ingres_pconnect</b></b></span> ([ <span class="methodparam"><span class="type">string</span> <tt class="parameter">$database</tt></span> [, <span class="methodparam"><span class="type">string</span> <tt class="parameter">$username</tt></span> [, <span class="methodparam"><span class="type">string</span> <tt class="parameter">$password</tt></span> ]]] )</div> <p class="para rdfs-comment"> Open a persistent connection to an Ingres II database. </p> <p class="para"> There are only 2 differences between this function and <a href="function.ingres-connect.html" class="function">ingres_connect()</a> : First, when connecting, the function will first try to find a (persistent) link that's 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 (<a href="function.ingres-close.html" class="function">ingres_close()</a> will not close links established by <b>ingres_pconnect()</b>). This type of link is therefore called 'persistent'. </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">database</tt></i></span> <dd> <p class="para"> The database name. Must follows the syntax <var class="varname"><a href="domnotation.props.systemid.html" class="classname">[node_id::]dbname[/svr_class]</a></var>. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">username</tt></i></span> <dd> <p class="para"> The Ingres user name. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">password</tt></i></span> <dd> <p class="para"> The password associated with <i><tt class="parameter">username</tt></i>. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns a Ingres II link resource 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.ingres-connect.html" class="function" rel="rdfs-seeAlso">ingres_connect()</a></li> <li class="member"><a href="function.ingres-close.html" class="function" rel="rdfs-seeAlso">ingres_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.ingres-num-rows.html">ingres_num_rows</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.ingres-query.html">ingres_query</a></div> <div class="up"><a href="ref.ingres.html">Ingres II 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 + -