How to connect php to oracle database

install xammp v3.2.2 and PHP Version 5.6.31 iam try to connect oracle 12c version 12.1.0

i change file remove semicolan extension=php_oci8_12c.dll this extension

set path in envirnment variable instance client 12.1.0 oracal official instance client i use 64 bit windows 7 xammp 32 bit version i download 32 bit instance client

download php_oci in this link download php 5.6 version

iam facing this error Fatal error: Call to undefined function oci_connect() in C:\xampp\htdocs\test\con1.php on line 4


error in this line $conn=oci_connect(“trainee17”,“TRAINEE17”,“ demo”);

i use this php code

<head><title>Oracle demo</title></head>
    If (!$conn)
        echo 'Failed to connect to Oracle';
        echo 'Succesfully connected with Oracle DB';

error 2

facing another error the procedure entry point OCIStmt get next result could not be located in the dynamic link library OCI.dll

You need to enable the extension in your php.ini file


I thought OP had done that:

I knew they said, I imagined that was a typo. Am presuming they have also restarted since.

I wondered whether reading through the ‘Requirement’, ‘Installation’ and ‘Testing’ section that starts here might help:

i remove that again same error try to connect 12c databse not 11g

tel me clearly any tutorial to connect correct method to connect php to oracle database new error driver not found tel me

Did you read through the documentation I posted above?

I’ve never tried this, don’t have a copy of Oracle to test with, so can offer nothing other than the official documentation page which, on a quick glance, seemed to have more steps than you outlined in your original post.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.