title: Access Azure SQL Database from LAMP localhost in PHP
body: <p>I would like to connect to by Azure SQL database by using a PHP-Script. I execute the following script by using LAMP:</p>
  
  <pre><code>&lt;?php
  $serverName = "tcp:***.database.windows.net, 1433";
  $connectionOptions = array("Database" =&gt; "TryMe",
                             "UID" =&gt; "***@serverID",
                             "PWD" =&gt; "***");
  $conn = sqlsrv_connect($serverName, $connectionOptions);
  if($conn === false)
  {
      die(print_r(sqlsrv_errors(), true));
  }
  ?&gt;
  </code></pre>
  
  <p>Of course I checked the firewall rules on Azure. I allowed my IP to access the server.
  But I'm getting the error message: </p>
  
  <blockquote>
    <p>GET <a href="http://localhost/Ionic/test.php" rel="nofollow">http://localhost/Ionic/test.php</a> in the web console.</p>
  </blockquote>
  
  <p>What I'm doing wrong?
  Thanks for your help!</p>