Quhalix89
Quhalix89

Reputation: 129

XAMPP PHP 5.6 enable PDO MSSQL

I can't get PDO MSSQL working on XAMPP with PHP 5.6.3. XAMPP is installed on a Windows Server 2012 R2 machine. I added the following line to php.ini and of course I downloaded that most recent file from Microsoft and copied it to the extensions directory.

extension=php_pdo_sqlsrv_56_ts.dll

As described here: MSDN Documentation, I also installed the Microsoft ODBC driver on the machine. I restarted Apache several times now and still don't have any kind of information about PDO MSSQL within phpinfo().

I'll appreciate your hints guys.

Upvotes: 1

Views: 14558

Answers (2)

Tim
Tim

Reputation: 159

Add the PHP path C:\xampp\php to the Environment Variables in Windows 2008 R2

Upvotes: 0

John Bell
John Bell

Reputation: 2350

You should use the sqlsrv_* extension, mssql is deprecated: Here

EDIT: I realised you're already using sqlsrv. Not mssql. I used this tutorial to set it up with Xampp, and seemed to work fine.

Upvotes: 1

Related Questions