Error connecting to Oracle database. Here is the code in PHP:
<?php
$ora_bd = "(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=TCP)
(HOST=192.168.0.249)(PORT=1521)
)
)
(CONNECT_DATA=(SERVICE_NAME=CSTESTE))
)";
$ora_conexao = oci_connect('refeitorio', 'tiete2018', $ora_bd);
if (!$ora_conexao) {
$erro = oci_error();
trigger_error(htmlentities($erro['message'], ENT_QUOTES), E_USER_ERROR);
exit;
}else{
echo "Conectado com Sucesso.";
}
Remembering that I have already enabled the following commands in php.ini
extension=php_oci8.dll
extension=php_pdo_oci.dll
extension=php_oracle.dll
The following error appears: Fatal error: Uncaught Error: Call to undefined function oci_connect () in C: \ wamp64 \ www \ System \ Recovery \ Core \ TestCon.php: 11 Stack trace: # 0 {main} thrown in C: \ wamp64 \ www \ System \ Refeicao \ Core \ TesteCon.php on line 11