title: Connect from php to oracle database in windows x64
body: <p>I am trying to connect from php to oracle database in windows x64</p>
  
  <p>I use: php5, apache2, oraclexe 10.2</p>
  
  <p>My file "test.php" is the following:</p>
  
  <pre><code> &lt;?php
    if ($c = oci_connect("SYSTEM", "root", "//localhost:1521/XE")) {
     echo "Successfully connected to Oracle.";
     oci_close($c);
    } else {
     $err = oci_error();
     echo "Oracle Connect Error " . $err['text'];
    }
   ?&gt;
  </code></pre>
  
  <p>When I open localhost/test.php, getting a following error:</p>
  
  <pre><code>Warning: oci_connect() [function.oci-connect]: ORA-06413: Connection not open
  </code></pre>
  
  <p>I can not understand the cause of this error, because I have already connected to the same database from Java, and I think the php.ini file is well configured, because I managed to connect from php to MySQL database.
  Also followed this tutorial: <a href="http://www.orafaq.com/wiki/PHP_FAQ" rel="nofollow">http://www.orafaq.com/wiki/PHP_FAQ</a></p>
  
  <p>So if someone have a solutions and comments post it please</p>