title: How to enable extensions for oci8 (Oracle) in php.ini - PHP Warning: PHP Startup: in Unknown on line 0
body: <p>I have Windows XP and recently I installed wamp (apache-mysql-php) 32-bit.
  I tested the installation (connect to mysql database with php and apache) and everything was working fine.</p>
  
  <p>Now i need to connect to an Oracle database so I tried to enable some extensions
  related to <strong>Oracle</strong> and <strong>oci8</strong>.</p>
  
  <p>And I did:</p>
  
  <p><strong>1)</strong> I opened <strong>php.ini</strong> file and I removed the semicolons before the following lines:</p>
  
  <p><strong>before:</strong></p>
  
  <pre><code>;extension=php_oci8.dll
  ;extension=php_oci8_11g.dll
  </code></pre>
  
  <p><strong>after:</strong></p>
  
  <pre><code> extension=php_oci8.dll
   extension=php_oci8_11g.dll
  </code></pre>
  
  <p><strong>2)</strong> I restarted apache and all Services and i get a </p>
  
  <ul>
  <li>"PHP StartUp" Warning.</li>
  </ul>
  
  <p><strong>3)</strong> In <strong>php_error.log</strong> file I get:</p>
  
  <pre><code> **PHP Warning:  PHP Startup:  in Unknown on line 0**
  </code></pre>
  
  <p>So, i thought that it would be a good idea to check where my extension php folder is
  and if those dll files are there.</p>
  
  <p>In <strong>php.ini</strong> my extension folder is located at:</p>
  
  <pre><code>extension_dir = "C:/wamp/bin/php/php5.4.16/ext/"
  </code></pre>
  
  <p>The folder exists and both of these libraries (php_oci8.dll php_oci8_11g.dll) 
  are inside that folder.</p>
  
  <p><strong>4)</strong>  I added in my 'Path' system variable in Windows the following:</p>
  
  <pre><code>C:\wamp\bin\php\php5.4.16\ext;
  </code></pre>
  
  <p><strong>5)</strong> I copied both of these dll files in Apache's folder but again it didn't work!</p>
  
  <pre><code>C:\wamp\bin\apache\Apache2.4.4\bin 
  </code></pre>
  
  <p><strong>6)</strong> Also, I checked the <strong>phpinfo</strong> page and the only entry I get for "oci8" is the following:</p>
  
  <p><strong>Configure Command</strong></p>
  
  <pre><code> "--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=C:\php-sdk\oracle\instantclient11\sdk,shared"
  </code></pre>
  
  <p>Hm...the following folders <strong>do not exist</strong> in my system:</p>
  
  <pre><code>C:\php-sdk\oracle\instantclient10\sdk
  C:\php-sdk\oracle\instantclient11\sdk
  </code></pre>
  
  <p>So, what am I supposed to do next in order to correctly enable the oci8 extensions?</p>
  
  <p>thanks</p>