Jump to content

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

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.