note 109997 deleted from intro.sqlite3 by aharvey
| From: | aharvey@php.net | Date: | Mon, 10 Sep 2012 01:24:31 +0000 |
| Subject: | note 109997 deleted from intro.sqlite3 by aharvey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-190604@lists.php.net to get a copy of this message | ||
Note Submitter: ivor dot oconnor+8v64dah at gmail dot com
----
pomax at nihongoresources states "the PDO class does not come with a function for closing a
connection" and as a result I see lots of people coding using the technique he describes. Yet
here is the proper way according to the documentation which clearly uses a "close".
http://www.php.net/manual/en/sqlite3.close.php
<?php
$db = new SQLite3('mysqlitedb.db');
$db->close();
?>
Maybe promax's suggestion should be removed?