title: mssql_connect(): Unable to connect to server
body: <p>I have a Centos server with apache and PHP on it, and I have a SQL Server on another server, when I try to connect to <code>MSSQL</code> with <code>tsql -H</code> "sql server ip" <code>-p1433 -U sa</code>, it works and  connects OK, but when I try to run following <code>PHP</code> code</p>
  
  <pre><code>error_reporting(E_ALL);
  ini_set('display_errors', '1');
  $connection = mssql_connect('serverIP', 'username', 'password');
  </code></pre>
  
  <p>I get the error :</p>
  
  <blockquote>
    <p>Warning: mssql_connect(): Unable to connect to server: serverIP in
    /var/www/html/mssql.php on line 4</p>
  </blockquote>
  
  <p>what should I do?</p>