My PHP is in the path c:\php on a Windows 2012 server I added c:\php to the PATH variable.
I added php_pdo_sqlsrv_56_ts.dll in c:\php\ext directory
I added following lines in c:\php\php.ini file:
extension_dir = "c:\php\ext"
extension=php_pdo_sqlsrv_56_ts.dll
But the following command gives me warning that it cannot find the module whereas it exists there:
php --ini
PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php\ext\php_sqlsrv_56_ts.dll' - The specified module could not be found. in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php\ext\php_pdo_sqlsrv_56_ts.dll' - The specified module could not be found. in Unknown on line 0
Configuration File (php.ini) Path: C:\Windows
Loaded Configuration File: C:\php\php.ini