Don't Make The Same Mistake With PDO
Posted: Fri Nov 28, 2014 5:12 pm
Dear Fellow PHPers, and Forum goers,
Note: I use IIS 7 in Windows 8.1; Perhaps it is different for you using unix or mac os, goodluck!
I have to apologize for all the trouble I have cause posting forum questions like the following:
viewtopic.php?f=1&t=140644
It is obvious my first time dealing with php or with web server, or MySQL or PDO for that matter.
But where there is room to learn and analyze what's the problem and coming up with a solution at least amount to a well learned lesson.
Now the php.net instructions in enabling and installing PDO database driver all misleading to certain extent.
For instance, in the part where this link http://php.net/manual/en/pdo.installation.php is suggesting that you should enable the php_pdo.dll extension. DON'T DO IT. PHP 5.6.3 already comes with it, I not too sure or have proof of this, but I think it is already built in to the php.exe, which means it is already enabled. So when you enable it you will get an error telling you the PDO_MYSQL module is already enabled.
You will not need to enable no other extension for PDO to work, I got some weird error messages going around to all places.
if you read my previous post you will know.
Anyhow, that's a lesson well learned.
I hope someone with IIS windows can find this useful before going to enable extensions that already NOT needed to be RE-enabled.
Thanks.
Note: I use IIS 7 in Windows 8.1; Perhaps it is different for you using unix or mac os, goodluck!
I have to apologize for all the trouble I have cause posting forum questions like the following:
viewtopic.php?f=1&t=140644
It is obvious my first time dealing with php or with web server, or MySQL or PDO for that matter.
But where there is room to learn and analyze what's the problem and coming up with a solution at least amount to a well learned lesson.
Now the php.net instructions in enabling and installing PDO database driver all misleading to certain extent.
For instance, in the part where this link http://php.net/manual/en/pdo.installation.php is suggesting that you should enable the php_pdo.dll extension. DON'T DO IT. PHP 5.6.3 already comes with it, I not too sure or have proof of this, but I think it is already built in to the php.exe, which means it is already enabled. So when you enable it you will get an error telling you the PDO_MYSQL module is already enabled.
You will not need to enable no other extension for PDO to work, I got some weird error messages going around to all places.
if you read my previous post you will know.
Anyhow, that's a lesson well learned.
I hope someone with IIS windows can find this useful before going to enable extensions that already NOT needed to be RE-enabled.
Thanks.