title: PHP PDO ODBC MSSQL connection
body: <p>I've installed PHP on IIS7 following the official PHP documentation and it succeed. I can run PHP files and my site is OK.
  But I can't connect to my database on MSSQL with PDO and ODBC driver. I've set my php.ini carefuly and I think all is good. Morever I also think ODBC is native on Windows and PDO is included in latest PHP builds (mine is 5.5.36).</p>
  
  <p>So here's my connection code :</p>
  
  <pre><code>define("UID", 'uid');
  define("PWD", 'pwd');
  define("DSN", 'odbc:decheterie');
  // where 'decheterie' is the dataSource set in the ODBC Connection Manager
  
  try {
      $pdo = new PDO(DSN, UID, PWD);
  } catch (PDOException $e) {
      die("Error! ".$e-&gt;getMessage());
  }
  </code></pre>
  
  <p>The error I get is :</p>
  
  <blockquote>
    <p>Error! Could not find driver</p>
  </blockquote>
  
  <p>If I run a <code>php -m</code> I can see that PDO and ODBC modules are correctly loaded.
  But a <code>PDO::getAvailableDrivers()</code> returns an empty array and it can be verified within the <code>phpinfo()</code> which displays 'no value' in the 'PDO drivers' section.</p>
  
  <p>I've read a lot of posts and articles and each time a response is valided as 'problem solving' it's already good in my config.</p>
  
  <p>If someone can help it will be blessed ;)</p>