title: Connect to MSSQL using php from Mac OS X, "No data received"
body: <p>I needed to be able to connect to the mssql server at work on my laptop. I followed this tutorial to help me connect : <a href="http://lkrms.org/php-with-freetds-on-os-x-mavericks/" rel="nofollow">http://lkrms.org/php-with-freetds-on-os-x-mavericks/</a></p>
  
  <p>When I run the phpinfo(), I see that mssql is perfectly loaded, when I try to connect using the mssql_connect function, I get a "No data received" with this error : </p>
  
  <p>Unable to load the webpage because the server sent no data. Error code: ERR_EMPTY_RESPONSE</p>
  
  <p>I checked the php log, there is absolutely nothing.</p>
  
  <p>I'm using MAMP on Mac OS X Mavericks. I'm 100% sure that I'm using the right server address, port, user, password, everything.</p>
  
  <p>EDIT: I get those errors in my apache log:</p>
  
  <pre><code>dyld: lazy symbol binding failed: Symbol not found: _iconv_open
  Referenced from: /usr/local/freetds/lib/libsybdb.5.dylib
  Expected in: /Applications/MAMP/Library/lib/libiconv.2.dylib
  
  dyld: Symbol not found: _iconv_open
  Referenced from: /usr/local/freetds/lib/libsybdb.5.dylib
  Expected in: /Applications/MAMP/Library/lib/libiconv.2.dylib
  
  dyld: lazy symbol binding failed: Symbol not found: _iconv_open
  Referenced from: /usr/local/freetds/lib/libsybdb.5.dylib
  Expected in: /Applications/MAMP/Library/lib/libiconv.2.dylib
  
  dyld: Symbol not found: _iconv_open
  Referenced from: /usr/local/freetds/lib/libsybdb.5.dylib
  Expected in: /Applications/MAMP/Library/lib/libiconv.2.dylib
  </code></pre>