PHP Fatal error: Call to undefined function mssql_connect() while connecting in PHP

PHP Fatal error: Call to undefined function mssql_connect() error popping out when connecting through MSSQL functions in Ubuntu server

Answer

In Ubuntu Just you need to install
php5-sybase

sudo apt-get install php5-sybase

That’s it.
Test with mssql_connect.

mssql_connect('Your IP','username','password','database');

 

You can verify this in PHP info file

MSSQL in php

 

 

Editorial Staff
 

Editorial Staff at tutsplanet is a dedicated team to write various tutorial articles.