supuns Posted May 10, 2017 Share Posted May 10, 2017 (edited) 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 Edited May 10, 2017 by supuns Quote Link to comment https://forums.phpfreaks.com/topic/303908-connection-to-orcale-11g-through-php/ 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. Quote Link to comment https://forums.phpfreaks.com/topic/303908-connection-to-orcale-11g-through-php/#findComment-1546405 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. Quote Link to comment https://forums.phpfreaks.com/topic/303908-connection-to-orcale-11g-through-php/#findComment-1546422 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.