php man page for pg_close

Query: pg_close

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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_lo_create(3) - php
pg_lo_export(3) - php
pg_lo_open(3) - php
pg_send_prepare(3) - php
Similar Topics in the Unix Linux Community
Hung Port
crontab-db connection prob
ftp first connection closed
Query :: Using Netstat finding total value to a db connection
network connection failing