pg_pconnect -- Open a persistent PostgreSQL connection
Syntax
resource pg_pconnect ( string connection_string [, int connect_type] )
pg_pconnect() opens a connection to a
PostgreSQL database. It returns a connection resource that is
needed by other PostgreSQL functions.
For a description of the connection_string
parameter, see pg_connect().
To enable persistent connection, the pgsql.allow_persistentphp.ini directive must be set to "On" (which is the default).
The maximum number of persistent connection can be defined with the pgsql.max_persistentphp.ini directive (defaults to -1 for no limit). The total number
of connections can be set with the pgsql.max_linksphp.ini directive.
pg_close() will not close persistent links
generated by pg_pconnect().
pg pconnect php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online
Php pg pconnect syntax tutorial
php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.