title: Unable to load dynamic library 'php_oci8_11g.dll'
body: <p>Please help me to connect the oracle database 11g through Laravel 5.7</p>
  
  <p>I spend 4 days still don't make it out just drive me crazy</p>
  
  <p>My config:</p>
  
  <pre><code>Win7-Sp1-64Bit,Xampp-v3.2.2,PHP-7.2.1,Laravel-5.7.1
  </code></pre>
  
  <p>I placed the file </p>
  
  <pre><code> OCI8-php_oci8-2.1.8-7.2-ts-vc15-x64 (oci8.dll,oci8_11r.dll, oci8_12g.dll) 
  </code></pre>
  
  <p>in xampp/php/ext</p>
  
  <p><strong>I've created Environment Variables in User variables &amp; System variables</strong>:</p>
  
  <p>PATH: <code>C:\instantclient_18_3 or C:\instantclient_12_2</code></p>
  
  <p>TNS_ADMIN: <code>C:\instantclient_18_3 or C:\instantclient_12_2</code></p>
  
  <p>。Also tried to install：</p>
  
  <pre><code>32bit-instantclient-basic-nt-12.2.0.1.0.zip
  
  32bit-instantclient-basic-nt-12.1.0.2.0.zip
  
  64bit-instantclient-basic-windows.x64-18.3.0.0.0dbru.zip
  
  64bit-instantclient-basic-windows.x64-12.2.0.1.0.zip
  </code></pre>
  
  <p>OCI8 still can't be loaded in <a href="http://localhost/index.php" rel="nofollow noreferrer">http://localhost/index.php</a></p>
  
  <p>and I run the command php -m still come out the same result:</p>
  
  <blockquote>
    <p>Warning: PHP Startup: Unable to load dynamic library
    'php_oci8_11g.dll' (tried: C:\xampp\php\ext\php_oci8_11g.dll (%1 is
    not a valid Win32 application.),
    C:\xampp\php\ext\php_php_oci8_11g.dll.dll (The specified module could
    not be found.)) in Unknown on line 0</p>
    
    <p>PHP Warning:  PHP Startup: Unable to load dynamic library
    'php_oci8_12c.dll' (tried: C:\xampp\php\ext\php_oci8_12c.dll (%1 is
    not a valid Win32 application.),
    C:\xampp\php\ext\php_php_oci8_12c.dll.dll (The specified module could
    not be found.)) in Unknown on line 0</p>
  </blockquote>