title: How to use oracle client 11.2 with php (xampp) on win7 x64
body: <p>I just installed an acutal XAMPP on my win7 (x64) PC to write some PHP scripts to connect to an oracle DB. I also have a normal oracle 11.2.0 client installed (PATH and ORACLE_HOME are set correctly). The client is used for all my other work without any problems.</p>
  
  <p>When I try to connect to an oracle DB PHP fails with <code>Fatal error: Call to undefined function oci_connect() in</code>. I remember I had to enable the "oci8-extensions" in my php.ini when I did the same thing some years ago on a x32 winXP PC.
  But my current xampp does not have these dll in the <code>php/ext</code> folder  (only a <code>php_oci8_12c.dll</code> which throws several errors of unknown functions on apache start and which is for oracle 12 and not 11) and the php.ini also says they are only needed for the instant client.</p>
  
  <pre><code>;extension=php_oci8.dll      ; Use with Oracle 10gR2 Instant Client
  ;extension=php_oci8_11g.dll  ; Use with Oracle 11gR2 Instant Client
  </code></pre>
  
  <p>Also this <a href="https://stackoverflow.com/questions/21584879/xampp-how-to-connect-to-oracle">SO-questions</a> shows that using the comment extension with a normal client will not work (which I also tried).</p>
  
  <p>I tried to google for a solution but all "solutions" are "install win32 instant client and enable extension". But I can`t do this as most of my QA-work requires the installed and configured 11.2.0-client and I don't have the .dll in my php/ext-folder anyway</p>
  
  <p>I also tried to copy the ociw32.dll from the client/bin folder to the php/ext-folder but then apache says it's not an PHP-library.</p>
  
  <p>So how can I enable PHP oracle libraries to use oci8 for XAMPP on x64 win7 <strong>WITHOUT</strong> installing win32 Oracle Instant Client and destroying my current setting?</p>
  
  <p>edit: I also tried the steps described <a href="http://php.net/manual/en/oci8.installation.php" rel="nofollow noreferrer">in the PHP: Installation Manual (Post of: samantha dot vincent at gmail dot com)</a> including changing my apache-http.conf which also didn't help.</p>
  
  <p>I'm also confused of my <code>phpinfo()</code>-Output as it says</p>
  
  <pre><code>Configure Command   "--with-pdo-oci=c:\php-sdk\oracle\x86\instantclient_12_1\sdk,shared" "--with-oci8-12c=c:\php-sdk\oracle\x86\instantclient_12_1\sdk,shared"
  </code></pre>