note 112292 added to pdo.construct
| From: | Anonymous | Date: | Wed, 29 May 2013 05:30:39 +0000 |
| Subject: | note 112292 added to pdo.construct | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-194979@lists.php.net to get a copy of this message | ||
Sqlite:
<?php
try{
$pdo = new PDO('sqlite:example.db');
}catch (PDOException $e){
die ('DB Error');
}
?>
If 'example.db' does not exist, no exception is thrown but the file 'example.db'
is created.
----
Server IP: 69.147.83.199
Probable Submitter: 217.115.10.133
----
Manual Page -- http://php.net/manual/en/pdo.construct.php
Edit -- https://master.php.net/note/edit/112292
Del: integrated -- https://master.php.net/note/delete/112292/integrated
Del: useless -- https://master.php.net/note/delete/112292/useless
Del: bad code -- https://master.php.net/note/delete/112292/bad+code
Del: spam -- https://master.php.net/note/delete/112292/spam
Del: non-english -- https://master.php.net/note/delete/112292/non-english
Del: in docs -- https://master.php.net/note/delete/112292/in+docs
Del: other reasons-- https://master.php.net/note/delete/112292
Reject -- https://master.php.net/note/reject/112292
Search -- https://master.php.net/manage/user-notes.php