Jump to content
Sign in to follow this  
supuns

connection to Orcale 11g through php

Recommended Posts

Hi Friends,

 

I need to connect oracle 11g database to using php. I instrol the php version of 5.4.3 and uncomment  the extension=php_oci8.dll. but when I run my php code its showing following error. please help to solve this error

 

my php code

----------------------------------

<?php
        $conn=oci_connect('rocell','rocell','//10.1.0.12:1522/CLONE1');
if (!$conn)
{
$m = oci_error();
echo $m['message'], "\n";
exit;
}
else {
print "con";

}

oci_close($conn);

?>

 

 

Error

.............................

( ! ) SCREAM: Error suppression ignored for ( ! ) Fatal error: Call to undefined function oci_connect() in C:\wamp\www\connect.php on line 2 Call Stack # Time Memory Function Location 1 0.0008 139128 {main}( ) ..\connect.php:0

post-204280-0-43039100-1494391945_thumb.jpg

Edited by supuns

Share this post


Link to post
Share on other sites

PHP 5.4 is dead. The current version is 7, and the last version from the 5.x branch which at least gets security updates is 5.6.

 

Also make sure you restart your PHP after changes to the configuration.

Share this post


Link to post
Share on other sites

thanks for ur comment.

thing is php 5.4 is have oracle 11g oci. i tried with 5.6 and it`s sporting oracle 12C oci.

do u have any idea for solve my problem.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.