Reputation: 2369
I'm trying to get the PDO SQL driver to work with my Xampp and PHP 5.5 installation. I have followed the directions found below as Microsoft has yet to make a PHP 5.5 SQL driver:
As you can see by the images I have downloaded the file, placed it into my C:\xampp\php\ext
folder and added it to php.ini
and restarted apache.
But still when running phpinfo();
it shows it as not loaded. What did I do wrong?
EDIT:
Error log for PHP shows this:
[25-Sep-2014 14:22:11 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_sqlsrv_55_ts.dll' - The specified module could not be found.
in Unknown on line 0
[25-Sep-2014 14:22:11 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_pdo_sqlsrv_55_ts.dll' - The specified module could not be found.
in Unknown on line 0
Upvotes: 1
Views: 2407
Reputation: 2369
It seems by using Dependency Walker (http://www.dependencywalker.com) I found out that the modules couldn't find php5ts.dll
file, even though it was directory up.
So I edited the Windows 2008 R2 Environment Variables and added C:\xampp\php
to the Path variable and it worked like a charm.
I used the instructions here on how to edit the variables in Windows:
Upvotes: 3