title: Cannot connect with MS SQL Server database
body: <p>I am trying to connect to a Microsoft SQL Server 2008 database using <code>sqlsrv_connect</code> in PHP.</p>
  
  <p>I've already installed, Microsoft SQL Server 2008 native client from <code>http://www.microsoft.com/en-us/download/details.aspx?id=27596</code> (SQLSRV30.exe), since my php version is 5.4.3 and I am running with Thread Safety enabled.</p>
  
  <p>I've also tried <a href="https://stackoverflow.com/questions/11323109/connecting-to-an-sql-server-database-using-php-on-windows">Connecting to an sql server database using php on windows</a>.</p>
  
  <p>I've configured everything accordingly, how it should be configured, but <code>sqlsrv_connect</code> is still giving me:</p>
  
  <pre><code>Fatal error: Call to undefined function sqlsrv_connect()
  </code></pre>
  
  <p>The thing is when I run <code>php.exe -i</code> in my command prompt, it shows that <code>sqlsrv</code> support is enabled: sqlsrv support => enabled, but it is not showing in <code>phpinfo()</code> although the sqlsrv extension is in my php ext directory, what could be wrong?</p>
  
  <p>What am I doing wrong? I need help with this from people who might have had this connection problem before.</p>