db2_close(3) php man page | unix.com

Man Page: db2_close

Operating Environment: php

Section: 3

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_close(3) - php
db2_conn_error(3) - php
db2_connect(3) - php
db2_set_option(3) - php
Similar Topics in the Unix Linux Community
Urgent help needed
How to connect with oracle database using unix...
Find common Strings in two large files
Connection closed by foreign host
Read parameter file in a shell script to unload a DB2 Table???