Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > 0afeee9cca140e167a996902b9a677c5 > files > 2231

php-manual-en-4.3.0-2mdk.noarch.rpm

<HTML
><HEAD
><TITLE
>pg_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="PostgreSQL functions"
HREF="ref.pgsql.html"><LINK
REL="PREVIOUS"
TITLE="pg_options"
HREF="function.pg-options.html"><LINK
REL="NEXT"
TITLE="pg_ping"
HREF="function.pg-ping.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.pg-options.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.pg-ping.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.pg-pconnect"
></A
>pg_pconnect</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN77681"
></A
><P
>    (PHP 3, PHP 4 )</P
>pg_pconnect&nbsp;--&nbsp;Open a persistent PostgreSQL connection</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN77684"
></A
><H2
>Description</H2
>resource <B
CLASS="methodname"
>pg_pconnect</B
> ( string connection_string)<BR
></BR
><P
>&#13;     <B
CLASS="function"
>pg_pconnect()</B
> opens a connection to a
     PostgreSQL database. It returns a connection resource that is
     needed by other PostgreSQL functions.
    </P
><P
>&#13;     For a description of the <TT
CLASS="parameter"
><I
>connection_string</I
></TT
> 
     parameter, see <A
HREF="function.pg-connect.html"
><B
CLASS="function"
>pg_connect()</B
></A
>.
    </P
><P
>&#13;     To enable persistent connection, the <A
HREF="ref.pgsql.html#ini.pgsql.allow-persistent"
>pgsql.allow_persistent</A
>
     <TT
CLASS="filename"
>php.ini</TT
> directive must be set to "On" (which is the default).
     The maximum number of persistent connection can be defined with the <A
HREF="ref.pgsql.html#ini.pgsql.max-persistent"
>pgsql.max_persistent</A
>
     <TT
CLASS="filename"
>php.ini</TT
> directive (defaults to -1 for no limit). The total number
     of connections can be set with the <A
HREF="ref.pgsql.html#ini.pgsql.max-links"
>pgsql.max_links</A
> 
     <TT
CLASS="filename"
>php.ini</TT
> directive.
    </P
><P
>&#13;     <A
HREF="function.pg-close.html"
><B
CLASS="function"
>pg_close()</B
></A
> will not close persistent links
     generated by <B
CLASS="function"
>pg_pconnect()</B
>.
    </P
><P
>&#13;     See also <A
HREF="function.pg-connect.html"
><B
CLASS="function"
>pg_connect()</B
></A
>, and the section
     <A
HREF="features.persistent-connections.html"
>Persistent Database
     Connections</A
> for more information.
    </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.pg-options.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.pg-ping.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>pg_options</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.pgsql.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>pg_ping</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>