I have uncommented the following two lines in my php.ini:
extension=php_pdo_oci.dll
extension=php_oci8_12c.dll
Code:
public static function getAllNames(){
$dbUser = "xxx";
$dbPass = "xxxx";
$dbConn = "(DESCRIPTION = (ADDRESS = (PROTOCOL=TCP)(HOST=xxxx)(PORT=xxxx))(CONNECT_DATA=(SID=xxxx)))";
$conn = oci_connect($dbUser, $dbPass, $dbConn);
$sql = oci_parse($conn,"Select FNAME, LNAME from PERSONA WHERE STATUS = 'A' ORDER BY FNAME");
return $sql;
}
I'm not able to get rid of the error. I have seen a couple of questions similar to mine, but most of them were using apache server and couldn't really solve my problem. Any help would be appreciated. Thanks