Query: db2_close
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
DB2_CLOSE(3) 1 DB2_CLOSE(3) db2_close - Closes a database connectionSYNOPSISbool db2_close (resource $connection)DESCRIPTIONThis function closes a DB2 client connection created with db2_connect(3) and returns the corresponding resources to the database server. If you attempt to close a persistent DB2 client connection created with db2_pconnect(3), the close request is ignored and the persistent DB2 client connection remains available for the next caller.PARAMETERSo $connection - Specifies an active DB2 client connection.RETURN VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #1 Closing a connection The following example demonstrates a successful attempt to close a connection to an IBM DB2, Cloudscape, or Apache Derby database. <?php $conn = db2_connect('SAMPLE', 'db2inst1', 'ibmdb2'); $rc = db2_close($conn); if ($rc) { echo "Connection was successfully closed."; } ?> The above example will output: Connection was successfully closed.SEE ALSOdb2_connect(3), db2_pclose(3), db2_pconnect(3). PHP Documentation Group DB2_CLOSE(3)
Related Man Pages |
---|
db2_server_info(3) - php |
pdo_odbc-dsn(3) - php |
db2_close(3) - php |
db2_conn_error(3) - php |
pg_close(3) - php |
Similar Topics in the Unix Linux Community |
---|
reporting NS-12564 error as ORA-12564 |
Causes of high runq-sz and cswch/s output from sar |
DB2 high CPU |
Find common Strings in two large files |
Connection closed by foreign host |