I\'m trying configure XAMPP to use with MSSQL. I\'m following this: Example but I still had success.
I copied the files: php_pdo_sqlsrv_54_ts.dll
and
For PHP5.6 vou need download SQLSRV32.EXE, after it put the php_pdo_sqlsrv_56_ts.dll and php_sqlsrv_56_ts.dll on ext folder and finally register those extension on php.ini, like this:
extension=php_sqlsrv_56_ts.dll
extension=php_pdo_sqlsrv_56_ts.dll
Restart apache and try phpinfo()
or you could use getAvailableDrivers()
<?php
echo "<pre>";
print_r(PDO::getAvailableDrivers());
After a long time...
I am 3 days with this problem, with me only resolved after adding the correct versions of the PDO driver on this link.
My windows is 64x, but the XAMP is 86x. I only noticed after running phpinfo()
Note that the version you must add to the \ext folder is not the operating system version but rather the xamp installation, just like the image below: