How do I enable PDO support? |
Site Admin
|
obviously, you have to load pdo mysql php extension in php.ini.
Open phpinfo() page, locate php.ini file, find pdo_mysql extension, uncomment it, save the file and restart apache. |
||||||||||||
_________________ The PHP IDE team |
Pdo |
|
Prior to my initial post I enabled php_mysql.dll
And I added: Extension=php_pdo.dll But can not find pdo.dll on my machine. Is php_pdo.dll the same thing? Charles |
||||||||||||
|
Pdo |
|
I also rebooted the machine after these changes.
|
||||||||||||
|
Site Admin
|
;extension=php_pdo_mysql.dll
=> extension=php_pdo_mysql.dll |
||||||||||||
_________________ The PHP IDE team |
PDO |
|
After changing the bin/php.ini without luck, I did a search and found several other php.ini files in the Tech platform directories, for development, for production, under PHP/php.ini, etc.
I opened each of them and changed the configuration in them all, then I restarted apache again and it is now working. I don't know which of the files is controlling the installation, but it is NOT the one that is listed in the php.info listing under: Loaded Configuration File Now when I run this: print_r(PDO::getAvailableDrivers()); I get this: Array ( [0] => mysql [1] => sqlite [2] => sqlite2 ) which I believe is the correct response. So I should be good now. Another misleading item: the php.info listing shows this: Configuration File (php.ini) Path = C:\Windows But there is no php.ini file in my C:\Windows directory. Perhaps I was supposed to copy it there during the installation and missed that step. So I guess the moral of this story is to know that php.ini files exist in several locations and its not immediately obvious which one is controlling the operation of the server (I still don't know which one fixed it and don't have time to figure it out).e Thank you- Charles |
||||||||||||
|
Site Admin
|
Charles, Configuration File (php.ini) Path plays no role. What you want to check is "Loaded Configuration File" and "Additional .ini files parsed"
|
||||||||||||
_________________ The PHP IDE team |
How do I enable PDO support? |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by