I am using XAMPP version 5.6.15 to run my PHP file on windows 10.
But I am getting this error message:
Fatal error: Call to undefined function oci_connect() in F:\xampp\htdocs\Sbank\index.php on line 4
According to PHP docs everything should work fine.
<?php
$conn = oci_connect('admin', 'admin', 'localhost/JDT');
if (!$conn) {
$e = oci_error();
trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
}
$stid = oci_parse($conn, 'SELECT sysdate FROM dual');
oci_execute($stid);
echo $stid;
?>