pg_close(3) php man page | unix.com

Man Page: pg_close

Operating Environment: php

Section: 3

PG_CLOSE(3)															       PG_CLOSE(3)

pg_close - Closes a PostgreSQL connection

SYNOPSIS
bool pg_close ([resource $connection])
DESCRIPTION
pg_close(3) closes the non-persistent connection to a PostgreSQL database associated with the given $connection resource. Note Using pg_close(3) is not usually necessary, as non-persistent open connections are automatically closed at the end of the script. If there is open large object resource on the connection, do not close the connection before closing all large object resources.
PARAMETERS
o $connection - PostgreSQL database connection resource. When $connection is not present, the default connection is used. The default connection is the last connection made by pg_connect(3) or pg_pconnect(3).
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1 pg_close(3) example <?php $dbconn = pg_connect("host=localhost port=5432 dbname=mary") or die("Could not connect"); echo "Connected successfully"; pg_close($dbconn); ?> The above example will output: Connected successfully
SEE ALSO
pg_connect(3). PHP Documentation Group PG_CLOSE(3)
Related Man Pages
pg_connect(3) - php
pg_end_copy(3) - php
pg_last_error(3) - php
pg_lo_unlink(3) - php
pg_send_prepare(3) - php
Similar Topics in the Unix Linux Community
how to obtain a persistent oracle connection in proc*c pthread
Not able to catch psftp errors
How keep running a program n an another computer via a connection ssh when the connection is closed?
Print out my current http connection
Telnet in script Connection closed by foreign host