php man page for db2_close

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 connection

SYNOPSIS
bool db2_close (resource $connection)
DESCRIPTION
This 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.
PARAMETERS
o $connection - Specifies an active DB2 client connection.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #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 ALSO
db2_connect(3), db2_pclose(3), db2_pconnect(3). PHP Documentation Group DB2_CLOSE(3)
Related Man Pages
db2_server_info(3) - php
db2_conn_errormsg(3) - php
db2_client_info(3) - php
db2_rollback(3) - php
mongoclient.close(3) - php
Similar Topics in the Unix Linux Community
Compare files
How to connect with oracle database using unix...
IBM DB2 Product Suite
DB2 high CPU
Find common Strings in two large files