supuns Posted May 10, 2017 Share Posted May 10, 2017 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 Link to comment Share on other sites More sharing options...
Jacques1 Posted May 10, 2017 Share Posted May 10, 2017 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. Link to comment Share on other sites More sharing options...
supuns Posted May 10, 2017 Author Share Posted May 10, 2017 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.