I am trying to get a PHP PDO driver to run a SQL server. I received the file from Microsoft.
I am using PHP 5.3. I copied php_pdo_sqlsrv_53_nts.dll to my PHP extension directory and changed PHP.INI . The error log displays
[31-Mar-2012 20:11:38] PHP Warning: running PHP: the dynamic library 'c: \ php \ ext \ php_pdo_sqlsrv_53_nts.dll' cannot be loaded - the specified module was not found. in Unknown on line 0
The file exists. I checked it with DEPENDS.EXE and skipped MSVCR100.DLL and MSVCP100.DLL , and I ran all the VC ++ runtime packages and got the DLLs. DEPENDS reports two missing dependencies, LINKINFO.DLL and IESHIMS.DLL . Not sure what it is.
I do not have PHP_PDO.DLL ; from what I read, I pointed out that PHP 5.3+ creates PHP_PDO.DLL in PHP. phpinfo has a "PDO" section that has "PDO drivers" = "no value" . I am not sure what this value should be.
I tried restarting the web server (as opposed to not only restarting the service), as suggested in another post, but this did not fix it.
Works on Windows Server 2008 with IIS and on x64.
php sql-server pdo
Sam
source share