Installed XAMMP and PHP 5.6.31 using Oracle instaclient_11_2 already in the C:\drive. Edited and enabled extension=php_oci8_11g.dll
in php.ini
. Installed php_oci8_11g.dll
in C:\xampp\php\ext
.
What did i miss?
PHP returns:
Fatal error: Call to undefined function oci_connect() in C:\xampp\htdocs\OC\oci8.php on line 3
<?php
$conn = oci_connect('hr', 'hr', 'localhost/orcl');
if (!$conn) {
$e = oci_error();
trigger_error(htmlentities($e['message'], ENTS_QUOTES),E_USER_ERROR);
}
else echo "connection successful";
?>