title: ODBC driver with two versions of PHP
body: <p>I have installed php 5.6 along side an already existing php 5.5</p>
  
  <p>All seems to be working fine except for connecting to sqlserver</p>
  
  <p>This is my test php script:</p>
  
  <pre><code>$connectionInfo = array( "Database"=&gt;"$DB", "UID"=&gt;"$DBUSER", "PWD"=&gt;"$DBPASS");
  
  $cn = sqlsrv_connect($DBSERVER, $connectionInfo);
  $strErrors = getSQLErrors();
  if ($strErrors != "")
      die($strErrors);
  
  sqlsrv_close($cn);
  
  function getSQLErrors($ignoreWarnings = false)
  {
          $retVal = "";
          $err = sqlsrv_errors();
          if ($err)
          {
                  foreach( $err as $error )
                  {
                          if (!$ignoreWarnings || ($ignoreWarnings &amp;&amp; $error['SQLSTATE'] != 1000)) // ignore warnings
                                  $retVal .= "SQLSTATE: ".$error[ 'SQLSTATE'].". Code: ".$error[ 'code'].". Message: ".$error[ 'message']."\r\n\r\n";
                  }
          }
  
          return $retVal;
  }
  </code></pre>
  
  <p>This is the error I get:</p>
  
  <pre><code>SQLSTATE: IMSSP. Code: -49. Message: This extension requires the Microsoft ODBC Driver 11 for SQL Server. Access the following URL t
  o download the ODBC Driver 11 for SQL Server for x86: http://go.microsoft.com/fwlink/?LinkId=163712
  
  SQLSTATE: IM002. Code: 0. Message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
  </code></pre>
  
  <p>I already have the following in my ext folder and in my php.ini:</p>
  
  <pre><code>php_sqlsrv_56_nts.dll
  php_pdo_sqlsrv_56_nts.dll
  </code></pre>
  
  <p>I have path environment variable pointing to my 5.6 php.</p>
  
  <p>The relevant paths in the php.ini file all point to the 5.6 version also.</p>
  
  <p>Is there something else I need to be aware of?  Can anyone help me out before I pull all my hair out?</p>