I’m getting this annoying message:
Fatal error: Call to undefined function mssql_connect()
I’ve read many threads where they say just uncomment the php_mssql.dll, but there is no such file in my extension folder and neither is it listed in php.ini.
And I can’t seem to find it anywhere. All the links posted on forums are broken, and I’m completely broken by this.
I also tried to download recent files from Microsoft, I unpacked this one: php_pdo_sqlsrv_54_ts.dll, and have added it in the extensions list but I still get the same error.
Is there any meaningful way one can do this? Or maybe I need to reinstall PHP?
EDIT
I added the following files to the php.ini extensions:
extension=php_pdo_sqlsrv_53_nts.dll
extension=php_pdo_sqlsrv_53_ts.dll
extension=php_sqlsrv_53_nts.dll
extension=php_sqlsrv_53_ts.dll
extension=php_pdo_mssql.dll
extension=php_pdo_odbc.dll
But still no luck… 🙁
Alright, this is how I solved it:
I simply installed php 5.2, then added native mssql extensions, I think it looked like:
Unlike 5.3, the 5.2 version has the native binaries that work with mssql for Windows.
(Installing PDO is not an option for many people, as it requires too much work and also learning some new syntax, even though it’s supposed to be more ‘reliable’).
Finally, I downloaded msvcr71.dll from
Without this file the connection to server is being cut and and is unstable.
That’s it.