krazykev Posted February 13, 2012 Share Posted February 13, 2012 Hi all, this is driving me crazy - I must be doing something obviously wrong. I want to load the Microsoft PHP PDO drivers. I have checked my phpinfo and found the following:- PHP Version 5.3.8 Loaded Configuration File C:\Program Files (x86)\PHP\php.ini extension_dir C:\Program Files (x86)\PHP\ext So I put the file 'php_pdo_sqlsrv_53_ts_vc9.dll' in the extension dir. I then added the following line the correct php.ini file:- ;;;;;;;;;;;;;;;;;;;;;; ; Dynamic Extensions ; ;;;;;;;;;;;;;;;;;;;;;; extension=php_pdo_sqlsrv_53_ts_vc9.dll But when I check php info the sqlsrv driver does not appear to be loaded, not even after a reboot. All I see is: PDO drivers mysql, odbc, sqlite Not sure what I have missed. How can I tell if PHP has tried to load the sqlsrv drivers? Thanks Kev Quote Link to comment https://forums.phpfreaks.com/topic/257070-sqlsrv-driver-issues/ Share on other sites More sharing options...
kicken Posted February 13, 2012 Share Posted February 13, 2012 Make sure you are loading the correct dll file. Along with the version you need to match up the compiler (vc6 / vc9) and thread safety (ts / nts). You should be able to find that info in your phpinfo output if you are not sure what you have. Quote Link to comment https://forums.phpfreaks.com/topic/257070-sqlsrv-driver-issues/#findComment-1317811 Share on other sites More sharing options...
krazykev Posted February 13, 2012 Author Share Posted February 13, 2012 I wondered about that so decided to go down the route of uninstalling and re-installing. Never thought to look for that in phpinfo! DOH!!! Quote Link to comment https://forums.phpfreaks.com/topic/257070-sqlsrv-driver-issues/#findComment-1317818 Share on other sites More sharing options...
krazykev Posted February 13, 2012 Author Share Posted February 13, 2012 I must have had a mis-match somewhere although I thought I tried every possible combination. I have just installed PHP 5.3.10 nts and using php_pdo_sqlsrv_53_nts_vc9.dll and it seems ok for now. Thanks for your suggestion. Quote Link to comment https://forums.phpfreaks.com/topic/257070-sqlsrv-driver-issues/#findComment-1317820 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.