I am trying to connect remote Microsoft SQL server using PDO. Before installing required drivers (SQLSRV30) my phpinfo()'s configure command section shows-
cscript /nologo configure.js "--enable-snapshot-build" "--without-dblib" "--without-pdo-dblib" "--without-pdo-mssql" "--with-pdo-oci=C:\php-
I have installed required drivers->php_pdo_sqlsrv_54_ts.dll and php_sqlsrv_54_ts.dll (I am using PHP 5.4 using APACHE server). I have also made required changes in php.ini file-
extension=php_pdo_sqlsrv_54_ts.dll
extension=php_sqlsrv_54_ts.dll
Despite this, when I tried making connection with MSSQL Server, error appears saying undefined function mssql_connect() and undefined function sqlsrv_connect().
The php info page still says that-> "--without-pdo-mssql" in configure command section.
Kindly help where the problem is!
PS:1) When using ODBC odbc_connect() function works fine. 2) I have refreshed Apache several times after editing. 3) I have saved .ts files in the C:\wamp\bin\php\php5.4.12\ext folder