Answer the question
In order to leave comments, you need to log in
Fatal error: Call to undefined function mssql_connect()?
Hello everyone,
Yesterday I reinstalled the computer, installed Apache, copied the PHP folder, installed SQL Server management studio, well, as usual after reinstallation.
In php.ini, everything related to PDO_MSSQL and mssql is uncommented.
But it still shows this error. Fatal error: Call to undefined function mssql_connect()
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
see phpinfo().
It happens that php.ini is in the wrong place, phpinfo will show where it should be in order for the settings to be picked up.
What does phpinfo() say about mssql?
Apparently they forgot to install the php module which is responsible for contact with mssql.
For linux systems, this is http://www.freetds.org/ , for windows, apparently this one .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question