I have the following PHP code to connect to the Oracle database
<!doctype html>
<html>
<h1> Oracle connectivity </h1>
<p>
<?php
$conn = oci_connect('username', 'Password', 'localhost:1521/XE');
if (!$conn) {
$e = oci_error();
trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
}
}
?>
</p>
</html>
I am getting the error
Call to undefined function oci_connect()
I have uncommented extension=php_oci8.php
statement as well.
I am using Xampp. I have started apache and placed the file in the C:\\xampp\htdocs
folder as needed. The error still persists.