mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-27 14:28:56 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@113915 c90b9560-bf6c-de11-be94-00142212c4b1
64 lines
2.2 KiB
XML
64 lines
2.2 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.3 $ -->
|
|
<!-- splitted from ./en/functions/uodbc.xml, last change in rev 1.5 -->
|
|
<refentry id="function.odbc-pconnect">
|
|
<refnamediv>
|
|
<refname>odbc_pconnect</refname>
|
|
<refpurpose>Open a persistent database connection</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Description</title>
|
|
<methodsynopsis>
|
|
<type>resource</type><methodname>odbc_pconnect</methodname>
|
|
<methodparam><type>string</type><parameter>dsn</parameter></methodparam>
|
|
<methodparam><type>string</type><parameter>user</parameter></methodparam>
|
|
<methodparam><type>string</type><parameter>password</parameter></methodparam>
|
|
<methodparam choice="opt"><type>int</type><parameter>cursor_type</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Returns an ODBC connection id or 0 (&false;) on
|
|
error. This function is much like
|
|
<function>odbc_connect</function>, except that the connection is
|
|
not really closed when the script has finished. Future requests
|
|
for a connection with the same <parameter>dsn</parameter>,
|
|
<parameter>user</parameter>, <parameter>password</parameter>
|
|
combination (via <function>odbc_connect</function> and
|
|
<function>odbc_pconnect</function>) can reuse the persistent
|
|
connection.
|
|
</para>
|
|
<para>
|
|
<note>
|
|
<simpara>
|
|
Persistent connections have no effect if PHP is used as a CGI
|
|
program.
|
|
</simpara>
|
|
</note>
|
|
</para>
|
|
<para>
|
|
For information about the optional cursor_type parameter see the
|
|
<function>odbc_connect</function> function. For more information
|
|
on persistent connections, refer to the PHP FAQ.
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|