title: PHP - Connecting to MSSQL Database - FreeTDS, PHP 5.3.27, Linux Redhat 64 bit
body: <p>I'm having a very hard time connecting to a MSSQL database from my Redhad linux box using PHP.  I've Googled this thing to death and everything I try doesn't seem to work.</p>
  
  <p>I've installed FreeTDS and compiled the PHP install package to create the mssql.so extension.  I've placed the extension in the correct extensions directory and I've added the extension to my php.ini file.</p>
  
  <p>I've also turned off all firewalls to take that out of the picture.</p>
  
  <p>The latest PHP I tried is:</p>
  
  <pre><code>&lt;?php
  
  echo "y";
  $server = 'SERVERNAME';
  echo "e";
  // Connect to MSSQL
  $link = mssql_connect($server, '&lt;USERNAME&gt;', '&lt;PASSWORD&gt;');
  echo "s";
  if (!$link) {
      die('Something went wrong while connecting to MSSQL');
  }
  echo "!";
  ?&gt;
  </code></pre>
  
  <p>When I execute this code, I get nothing.  So added those echos and all I get is ye, which tells me that it is not connecting at all.  Any help will be greatly appreciated.  I've tried searching for log files on the server, but I don't really know what to be looking for.</p>