title: How to install an SQLSRV extension to php XAMPP
body: <p>I'm trying to install a SQLSRV extension. My PHP version is 7.2 (XAMPP 3.2.2) and I use windows 10. I downloaded the .dll from here: <a href="https://github.com/Microsoft/msphpsql/releases" rel="noreferrer">https://github.com/Microsoft/msphpsql/releases</a>. Then I unpacked it to the <code>xampp/php/ext</code> folder <a href="https://i.stack.imgur.com/8pE69.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8pE69.png" alt="enter image description here"></a></p>
  
  <p>After that I opened the <code>php.ini</code> and added this extension:</p>
  
  <ol>
  <li><strong>extension=php_pdo_sqlsrv_72_nts</strong> </li>
  <li><strong>extension=php_sqlsrv_72_nts</strong></li>
  </ol>
  
  <p>Next I restarted the Apache server. </p>
  
  <p>Unfortunately when I open the phpinfo website I don't see the extension. Also when I open the XAMPP shell and type <strong>php</strong> I'm getting an error.</p>
  
  <blockquote>
    <p>PHP Startup: Unable to load dynamic library 'php_pdo_sqlsrv_72_nts'
    (tried: C:\xampp\php\ext\php_pdo_sqlsrv_72_nts (Module was not found.)</p>
  </blockquote>
  
  <p>My extension_dir in php.ini is set to <code>extension_dir="C:\xampp\php\ext"</code>.</p>
  
  <p>Architecture is x86.</p>
  
  <p>What did I do wrong?</p>
  
  <p><strong>EDIT:</strong>
  I've changed the nts to ts files and now its working.</p>