note 89925 deleted from function.oci-close by sixd
| From: | sixd@php.net | Date: | Tue, 17 Nov 2009 21:37:04 +0000 |
| Subject: | note 89925 deleted from function.oci-close by sixd | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-163010@lists.php.net to get a copy of this message | ||
Note Submitter: ajitsingh4u at gmail dot com
Reason: 0
----
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);
...
?>