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.
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.