hi all
i installed oracle 10g client in my system i want to connect php with oracle i put extension file in the place i am getting following error when i start xampp

PHP Startup:oci8: Unable to initialize module Module compiled with module API=20060613 PHP compiled with module API=20090626 These options need to match

please tell me how to solve this problem

thanks in advance

    The php_*.dll extension files are compiled such that they only work for a specific version of PHP... meaning you can't just download any php_oci8_11g.dll file and expect it to work with your installation of PHP.

    Which version of PHP are you using? You'll most likely need to re-download the full .zip package of that version and extract the extension file from there.

      hi all
      when i configured PDO_OCI library installed my oracle connection is working
      and i used following url to check my oracle oci connection

      http://www.phpro.org/manual/function.oci-connect.html
      is working fine or not?

      and to tell you all
      these following urls also helped me to achieve this
      http://www.idevelopment.info/data/Oracle/DBA_tips/Database_Administration/DBA_26.shtml

      http://www.yiiframework.com/forum/index.php?/topic/6139-problem-with-oracle-pdo-connectivity/
      see my code

      <?php
      ini_set('display_errors', 1); 
      ini_set('log_errors', 1); 
      ini_set('error_log', dirname(__FILE__) . '/error_log_test_display3.txt'); 
      error_reporting(E_ALL);
      /* oci_define_by_name example - thies at thieso dot net (980219) */
      
      $conn = oci_connect("scott", "tiger");
      
      $stmt = oci_parse($conn, "SELECT empno, ename FROM emp where ename like 'M%'");
      
      /* the define MUST be done BEFORE oci_execute! */
      
      oci_define_by_name($stmt, "EMPNO", $empno);
      oci_define_by_name($stmt, "ENAME", $ename);
      
      
      oci_execute($stmt);
      
      while (oci_fetch($stmt)) {
          echo "empno:" . $empno . "\n";
          echo "ename:" . $ename . "\n";
      echo "<br>";
      }
      
      oci_free_statement($stmt);
      oci_close($conn);
      ?> 
      
        16 days later

        Hi thread

        I have same problem, i have oracle 10g installed on my PC and i want to use PHP with the oracle apache server
        I am using PHP version php-5.2.13-Win32
        oracle 10g

        when i try to restart apache services "Process manager " & AScontrol then it will give some version conflict warning error but it executes the php and oracle perfectly and when i use the php4 then it will say it is unable to load oci8.dll file.

        Pl help me how do i make it consistent in version compatibility

        You can also check my detailed post at :
        http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/PHP_Installation/Q_26190250.html

        Thanks in advance

          Write a Reply...