We need to redownload Expect and install it.
Here is the command to do that:
teacup install Expect
When you need a help, think about a wizard
sudo apt-get install freetds-dev sudo apt-get source php5 cd php5-5.1.2/ext/mssql sudo apt-get install php5-dev sudo phpize sudo ./configure --with-mssql sudo make cd modules cp mssql.so /usr/lib/php5/20051025 sudo vi /etc/php5/apache2/php.ini
extension = mssql.so
sudo /etc/init.d/apache2 restart
// Server in the this format: \ or
// , when using a non default port number
$server = 'DBSERVERNAME.corp.DOMAIN.com';
$link = mssql_connect($server, 'UserName', 'UserPassword');
if(!$link)
{
die('Something went wrong while connecting to MSSQL');
}
?>
Test