I've upgraded my php installation to 5.4.14 using Microsoft's Web Platform Installer 4.6.
Php is working great except I cannot connect to my database.
My connection was working great before the upgrade, but now it will not work. Here is my connection string where 1.1.1.1 is my real IP address:
$db = new PDO("odbc:DRIVER={SQL Server};SERVER=1.1.1.1;DATABASE=TEST;charset=utf8", "TEST", "Password");
This causes the browser to bring up a page that says "server error" but my error log remains empty. In my php.ini file, I have these lines:
extension=php_pdo_sqlsrv.dll
extension=php_sqlsrv.dll
extension=php_sqlsrv_53_nts_vc6.dll
These extensions do not appear to my phpinfo.php page. My "extension_dir" variable is set to the correct directory.
UPDATE: Now my error log is populating (for reasons unknown) and I am getting this error:
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files\PHP\v5.4\ext\php_pdo_sqlsrv.dll' - The specified module could not be found.