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

Edited by supuns
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.