title: PHP Startup: Unable to load dynamic library 'C:\\xampp\\php\\ext\\php_sqlsrv_7_nts.dll'
body: <p>I want to connect an SQL Server on my local computer via XAMPP. For that, I am using the following specs:</p>
  
  <ul>
  <li>XAMPP</li>
  <li>PHP 7.0.15</li>
  <li>SQL Server 2012</li>
  </ul>
  
  <p>I already installed the drivers from <a href="https://www.microsoft.com/en-gb/download/details.aspx?id=20098" rel="nofollow noreferrer">here</a> and <a href="https://www.microsoft.com/de-ch/download/details.aspx?id=36434" rel="nofollow noreferrer">here</a>. I also linked the Non thread safe driver <code>php_sqlsrv_7_nts_x86.dll</code> in the x86 (32-Bit) version. When I now start the apache server via the XAMPP Control Panel, it gives me an error in the <code>error_log</code> from apache.</p>
  
  <blockquote>
    <p>PHP Warning:  PHP Startup: Unable to load dynamic library
    'C:\xampp\php\ext\php_sqlsrv_7_nts.dll' - Das angegebene Modul
    wurde nicht gefunden.\r\n in Unknown on line 0</p>
  </blockquote>
  
  <p>This is a german error message and means that the module was not found. </p>
  
  <p>This is my php.ini file, which will be loaded:</p>
  
  <pre><code>extension_dir="C:\xampp\php\ext"
  
  ...
  
  extension=php_pdo_sqlsrv_7_nts.dll
  extension=php_sqlsrv_7_nts.dll
  
  extension=php_bz2.dll
  extension=php_curl.dll
  extension=php_fileinfo.dll
  ;extension=php_ftp.dll
  extension=php_gd2.dll
  extension=php_gettext.dll
  ;extension=php_gmp.dll
  ;extension=php_intl.dll
  ;extension=php_imap.dll
  ;extension=php_interbase.dll
  ;extension=php_ldap.dll
  extension=php_mbstring.dll
  extension=php_exif.dll      ; Must be after mbstring as it depends on it
  extension=php_mysqli.dll
  ;extension=php_oci8_12c.dll  ; Use with Oracle Database 12c Instant Client
  ;extension=php_openssl.dll
  ;extension=php_pdo_firebird.dll
  extension=php_pdo_mysql.dll
  ;extension=php_pdo_oci.dll
  ;extension=php_pdo_odbc.dll
  ;extension=php_pdo_pgsql.dll
  extension=php_pdo_sqlite.dll
  ;extension=php_pgsql.dll
  ;extension=php_shmop.dll
  </code></pre>
  
  <p>So the dll file is located under the default <code>ext</code> folder. What is going wrong?</p>
  
  <p>I think there must be a problem, that apache didn't find the dll file. But in the explorer, the dll file has the same name as I write in the php.ini.</p>