Fourat
Fourat

Reputation: 2447

How to enable php_mssql and php_pdo_mssql


I have an old project that uses php_mssql and php_pdo_mssql and I want to run it on a wamp server with PHP 5.5.12. I downloaded the following dlls:

I added the following lines to php.ini:

extension=php_mssql.dll
extension=php_pdo_mssql.dll

And finally enabled the php_sybase_ct extension (read it somewhere)
Though I can see php_mssql and php_pdo_mssql checked in php extensions list in wamp, the extensions doesn't work and it gives this error when I test it:

Fatal error: Call to undefined function mssql_connect() 

I run phpinfo(); and I can't see php_mssql and php_pdo_mssql anywhere.

Please Help.

Upvotes: 0

Views: 10733

Answers (1)

Stanimir Dimitrov
Stanimir Dimitrov

Reputation: 1890

You have to use php_sqlsrv.dll for PHP 5.5 or higher. The builds are unofficial.

Download it from here: https://onedrive.live.com/?id=669EE24817961774%21720&cid=669EE24817961774&group=0&parId=669EE24817961774%21123&o=OneUp

Extract into \standard\ext\

php_pdo_sqlsrv_55_ts.dll
php_sqlsrv_55_ts.dll

Extract into \standart-fcgi\ext

php_pdo_sqlsrv_55_nts.dll
php_sqlsrv_55_nts.dll

In php.ini

extension=php_sqlsrv_55_nts.dll
extension=php_pdo_sqlsrv_55_nts.dll  

extension=php_sqlsrv_55_ts.dll
extension=php_pdo_sqlsrv_55_ts.dll

Upvotes: 1

Related Questions