title: PHP Fatal error: Call to undefined function mssql_connect()
body: <p>I've never used php before and am trying to connect to a SQL Server 2008 instance on a Windows machine running IIS7 and PHP5.3.</p>
  
  <p>I have downloaded and installed <code>SQLSRV30.EXE</code> from <a href="http://www.microsoft.com/download/en/details.aspx?id=20098">here</a> in <code>C:\Program Files (x86)\PHP\ext</code> added this to <code>C:\Program Files (x86)\PHP\php.ini</code>:</p>
  
  <pre><code>extension=php_sqlsrv_53_nts.dll
  </code></pre>
  
  <p>Then restarted the entire server. I still get fatal errors in my log file saying:</p>
  
  <pre><code>PHP Fatal error:  Call to undefined function mssql_connect()
  </code></pre>
  
  <p>What do I need to do to connect to Microsoft SQL Server 2008 from PHP 5.3 running on IIS7/Windows Server 2008? I'm sure it's something really dumb that I'm missing...</p>
  
  <p><strong>FULL PHPINFO --></strong> <a href="http://demo.mandibleweb.com/zapified/hello.php">http://demo.mandibleweb.com/zapified/hello.php</a></p>
  
  <p>phpinfo(): </p>
  
  <pre><code>PHP Version 5.3.10
  
  
  
  
  
  System 
  
  Windows NT MWD001 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 
  
  
  
  Build Date 
  
  Feb 2 2012 20:10:58 
  
  
  
  Compiler 
  
  MSVC9 (Visual C++ 2008) 
  
  
  
  Architecture 
  
  x86 
  
  
  
  Configure Command 
  
  cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--disable-zts" "--disable-isapi" "--disable-nsapi" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" "--with-pdo-oci=C:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=C:\php-sdk\oracle\instantclient11\sdk,shared" "--with-enchant=shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet" "--with-mcrypt=static" "--disable-static-analyze" 
  
  
  
  Server API 
  
  CGI/FastCGI 
  
  
  
  Virtual Directory Support 
  
  disabled 
  
  
  
  Configuration File (php.ini) Path 
  
  C:\Windows 
  
  
  
  Loaded Configuration File 
  
  C:\Program Files (x86)\PHP\php.ini 
  </code></pre>