Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Connect Oracle Database and PHP, using XAMPP

3509220Jul 21 2017 — edited Jul 29 2017

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

i change php.inc 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 https://pecl.php.net/package/oci8/2.0.8/windows 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

error1

error in this line $conn=oci_connect("trainee17","TRAINEE17","192.168.0.193/ demo");

i use this php code

<html>

<head><title>Oracle demo</title></head>

<body>

\<?php

$conn=oci\_connect("username","password","localhost/service\_name");

If (!$conn)

    echo 'Failed to connect to Oracle';

else

    echo 'Succesfully connected with Oracle DB';

oci_close($conn);

?>

</body>

</html>

error 2

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

error.png

Another error 3

error1.png

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 26 2017
Added on Jul 21 2017
2 comments
4,747 views