Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > ebb1914cf182a88528b4547490db1dd8 > files > 1353

kdewebdev-quanta-doc-3.5.9-2mdv2008.1.x86_64.rpm

<HTML
><HEAD
><TITLE
>pg_pConnect</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.44"><LINK
REL="HOME"
TITLE="PHP Manual"
HREF="manual.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_Port"
HREF="function.pg-port.html"></HEAD
><BODY
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><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"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.pg-port.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.pg-pconnect"
>pg_pConnect</A
></H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN24357"
></A
>pg_pConnect -- 
     Make a persistent database connection
    </DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN24360"
></A
><H2
>Description</H2
><DIV
CLASS="funcsynopsis"
><P
></P
><CODE
CLASS="FUNCDEF"
>int pg_pconnect</CODE
>(string host, string port, string options, string tty, string dbname);<P
></P
></DIV
><P
>&#13;     Returns a connection index on success, or false if the connection
     could not be made.  Opens a persistent connection to a PostgreSQL
     database. Each of the arguments should be a quoted string,
     including the port number. The options and tty arguments are
     optional and can be left out. This function returns a connection
     index that is needed by other PostgreSQL functions. You can have
     multiple persistent connections open at once. See also
     <B
CLASS="function"
>pg_Connect()</B
>.
    </P
><P
>&#13;     A connection can also established with the following command:
     <B
CLASS="command"
>$conn = pg_pconnect("dbname=marliese port=5432");</B
>
     Other parameters besides <TT
CLASS="parameter"
><I
>dbname</I
></TT
> and
     <TT
CLASS="parameter"
><I
>port</I
></TT
> are <TT
CLASS="parameter"
><I
>host</I
></TT
>, 
     <TT
CLASS="parameter"
><I
>tty</I
></TT
>, <TT
CLASS="parameter"
><I
>options</I
></TT
>,
     <TT
CLASS="parameter"
><I
>user</I
></TT
> and <TT
CLASS="parameter"
><I
>password</I
></TT
>.
    </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.pg-options.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="manual.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.pg-port.html"
>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"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>pg_Port</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>