PHP3 Manual
PrevNext

pg_pConnect

pg_pConnect -- make a persistent database connection

Description

int pg_pconnect(string host, string port, string options, string tty, string dbname);

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 pg_Connect().


PrevHomeNext
pg_OptionsUppg_Port