note 116156 added to pdo.construct
| From: | berk0081 at umn dot edu | Date: | Sun, 16 Nov 2014 13:34:10 +0000 |
| Subject: | note 116156 added to pdo.construct | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-200920@lists.php.net to get a copy of this message | ||
Although not explicitly stated, parameters in the PDO $dsn string may be case-sensitive on some
platforms or drivers.
<?php
// The dbname will not be parsed with incorrect casing:
$pdo = new PDO("mysql:host=hostname;DBName=database", "user",
"password");
// The correct dbname is lowercase, as displayed in the manual:
$pdo = new PDO("mysql:host=hostname;dbname=database", "user",
"password");
----
Server IP: 72.52.91.14
Probable Submitter: 75.168.165.57
----
Manual Page -- http://php.net/manual/en/pdo.construct.php
Edit -- https://master.php.net/note/edit/116156
Del: integrated -- https://master.php.net/note/delete/116156/integrated
Del: useless -- https://master.php.net/note/delete/116156/useless
Del: bad code -- https://master.php.net/note/delete/116156/bad+code
Del: spam -- https://master.php.net/note/delete/116156/spam
Del: non-english -- https://master.php.net/note/delete/116156/non-english
Del: in docs -- https://master.php.net/note/delete/116156/in+docs
Del: other reasons-- https://master.php.net/note/delete/116156
Reject -- https://master.php.net/note/reject/116156
Search -- https://master.php.net/manage/user-notes.php