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 connectionSYNOPSISbool pg_close ([resource $connection])DESCRIPTIONpg_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.PARAMETERSo $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 VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #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 successfullySEE ALSOpg_connect(3). PHP Documentation Group PG_CLOSE(3)
Related Man Pages |
---|
pg_pconnect(3) - php |
pg_lo_create(3) - php |
pg_send_prepare(3) - php |
pg_tty(3) - php |
pg_version(3) - php |