<HTML ><HEAD ><TITLE >ibase_pconnect</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="PHP Manual" HREF="index.html"><LINK REL="UP" TITLE="InterBase functions" HREF="ref.ibase.html"><LINK REL="PREVIOUS" TITLE="ibase_num_fields" HREF="function.ibase-num-fields.html"><LINK REL="NEXT" TITLE="ibase_prepare" HREF="function.ibase-prepare.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="refentry" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP Manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.ibase-num-fields.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.ibase-prepare.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.ibase-pconnect" ></A >ibase_pconnect</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN40802" ></A ><P > (PHP 3>= 3.0.6, PHP 4 )</P >ibase_pconnect -- Creates an persistent connection to an InterBase database </DIV ><DIV CLASS="refsect1" ><A NAME="AEN40805" ></A ><H2 >Description</H2 >int <B CLASS="methodname" >ibase_pconnect</B > ( string database [, string username [, string password [, string charset [, int buffers [, int dialect [, string role]]]]]])<BR ></BR ><P > <B CLASS="function" >ibase_pconnect()</B > acts very much like <A HREF="function.ibase-connect.html" ><B CLASS="function" >ibase_connect()</B ></A > with two major differences. 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 InterBase server will not be closed when the execution of the script ends. Instead, the link will remain open for future use (<A HREF="function.ibase-close.html" ><B CLASS="function" >ibase_close()</B ></A > will not close links established by <B CLASS="function" >ibase_pconnect()</B >). This type of link is therefore called 'persistent'. </P ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Note: </B > <TT CLASS="parameter" ><I >buffers</I ></TT > was added in PHP4-RC2. </P ></BLOCKQUOTE ></DIV ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Note: </B > <TT CLASS="parameter" ><I >dialect</I ></TT > was added in PHP4-RC2. It is functional only with InterBase 6 and versions higher than that. </P ></BLOCKQUOTE ></DIV ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Note: </B > <TT CLASS="parameter" ><I >role</I ></TT > was added in PHP4-RC2. It is functional only with InterBase 5 and versions higher than that. </P ></BLOCKQUOTE ></DIV ><P > See also <A HREF="function.ibase-connect.html" ><B CLASS="function" >ibase_connect()</B ></A > for the meaning of parameters passed to this function. They are exactly the same. </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.ibase-num-fields.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.ibase-prepare.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >ibase_num_fields</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.ibase.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >ibase_prepare</TD ></TR ></TABLE ></DIV ></BODY ></HTML >