pg_pConnect

 

Syntax


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

Popis


Príkaz jazyka PHP
pg_pConnect - make a persistent database connection

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.

A connection can also established with the following command:
$conn = pg_pconnect("dbname=marliese port=5432");
Other parameters besides dbname and port are host, tty and options.

Pozri aj


pg_Connect



vytlačiť článok  hľadať súvisiace články 
Vyhľadávanie na stránke
Reklama
Náhodný obrázok
náhodný obrázok
Kontakty

Martin Kasman, M Software
Smreková 3095/23
Email: martin@kasman.sk

Telefón: 0908 270 294