title: mssql_connect(): Unable to connect to server (without freetds.conf)
body: <p>I have 2 servers: one is OpenSUSE, another one is SLES 11 sp2 Suse Linux Enterprise Server.</p>
  
  <p>In order to have connection to MSSQL I have to install mssql.so for php.</p>
  
  <p>OpenSUSE permits to install mssql from rpm.
  SLES - does not have mssql rpm, and this is why need to compile it.</p>
  
  <p>OpenSUSE: mssql rpm installed =></p>
  
  <pre><code>$server="172.x.x.x:49888";
  $username="username";
  $password="password";
  $link = mssql_connect($server, $username, $password);
  </code></pre>
  
  <p>here successfully connected to MSSQL!</p>
  
  <p>SLES: with mssql.so compiled =></p>
  
  <pre><code>$server="172.x.x.x:49888";
  $username="username";
  $password="password";
  $link = mssql_connect($server, $username, $password);
  </code></pre>
  
  <p>error: Warning: mssql_connect(): Unable to connect to server: 172.x.x.x:49888</p>
  
  <p>and if I edit freetds.conf</p>
  
  <pre><code>#A typical Microsoft server
  [Dovico]
      host = 172.x.x.x
      port = 49888
      tds version = 7.0
  </code></pre>
  
  <p>and change php like this:</p>
  
  <pre><code>$server="Dovico";
  $username="username";
  $password="password";
  $link = mssql_connect($server, $username, $password);
  </code></pre>
  
  <p>=> successfully connected to MSSQL!</p>
  
  <p>So my question is how can I have MSSQL connection on SLES (with mssql.so compiled) using this </p>
  
  <pre><code>mssql_connect("172.x.x.x:49888", "username", "password");
  </code></pre>
  
  <p>and not using freetds.conf ?</p>