downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

OCI-Collection->append> <oci_cancel
Last updated: Fri, 06 Nov 2009

view this page in

oci_close

(PHP 5, PECL oci8 >= 1.1.0)

oci_closeCloses Oracle connection

Description

bool oci_close ( resource $connection )

Closes the Oracle connection .

Parameters

connection

An Oracle connection identifier, returned by oci_connect().

Return Values

Returns TRUE on success or FALSE on failure.

Notes

Note: Starting from the version 1.1 oci_close() correctly closes the Oracle connection. Use oci8.old_oci_close_semantics option to restore old behaviour of this function.



add a note add a note User Contributed Notes
oci_close
ajitsingh4u at gmail dot com
29-Mar-2009 06:31
The PHP engine automatically closes the database connection at the end of the script
unless a persistent connection was made. If you want to explicitly close a database
connection, you can call the oci_close() OCI function with the connection
identifier returned by the oci_connect() call. For example:
<?php
$conn
= oci_connect('hr', 'hr', '//localhost/XE');
...
oci_close($conn);
...
?>

OCI-Collection->append> <oci_cancel
Last updated: Fri, 06 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites