title: Fatal error: Call to undefined function sqlsrv_connect() in C:\wamp\www\last\connect.php
body: <p>I am simply trying to connect my php to an microsoft sql server 2005. However, I'm getting this error:
  Fatal error: Call to undefined function sqlsrv_connect() in C:\wamp\www\last\connect.php</p>
  
  <p>My code is simply:</p>
  
  <pre><code>&lt;?php
  $serverName = "OurIPAddress"; //serverName\instanceName, portNumber (default is 1433)
  $connectionInfo = array( "Database"=&gt;"Thenameofourdatabase", "UID"=&gt;"OurID", "PWD"=&gt;"Ourpassword");
  $conn = sqlsrv_connect( $serverName, $connectionInfo);
  
  if( $conn ) {
       echo "Connection established.&lt;br /&gt;";
  }else{
       echo "Connection could not be established.&lt;br /&gt;";
       die( print_r( sqlsrv_errors(), true));
  }
  ?&gt;
  </code></pre>
  
  <p>I installed microsoft driver 3.0 from this link <a href="https://stackoverflow.com/questions/22015179/fatal-error-call-to-undefined-function-sqlsrv-connect">Microsoft driver 3.0</a>
  and edited the php.ini file from the apache server with <code>extension=c:/wamp/bin/php/php5.5.12/ext/php_sqlsrv_53_ts.dll.</code></p>
  
  <p>Following the instructions carefully the sqlsrverconnectdriver doesn't show on php_info()</p>
  
  <p>P.S I followed this links:
  <a href="https://stackoverflow.com/questions/22015179/fatal-error-call-to-undefined-function-sqlsrv-connect">Question 1</a>    <a href="https://stackoverflow.com/questions/23881636/fatal-error-call-to-undefined-function-sqlsrv-connect-wamp">Question 2</a>    <a href="https://stackoverflow.com/questions/18459658/call-to-undefined-function-sqlsrv-connect-in-c-wamp-www-webs-client-php-on-li">Question 3</a></p>