title: "Call to undefined function sqlsrv_connect()" when trying to connect to Azure DB from PHP
body: <p>I'm trying to connect from php to Azure DB by</p>
  
  <pre><code>$connectionInfo = array("UID" =&gt; "xxx@xxx", "pwd" =&gt; "xxx", "Database" =&gt; "xxx");
  $serverName = "tcp:xxx.database.windows.net,1433";
  $conn = sqlsrv_connect($serverName, $connectionInfo);
  </code></pre>
  
  <p>But it gives me</p>
  
  <p><strong>Fatal error: Call to undefined function sqlsrv_connect() in C:\wamp\www...\index.php on line 19</strong></p>