Bonjour,
j'ai installé xampp 1.8.1 32 bits, avec php 5.4.7 et apache 2.4.3,
j'ai installé oracle 11gR2 64bits, il fonctionne correctement,
j'ai installé l'instant client 32bits,
j'ai testé la connexion avec sqlplus, elle marche très bien,
extension=php_oci8_11g.dll je l'ai fait,
j'ai testé le code suivent en php mais il m'affiche le message d'erreur suivent : Fatal error: Call to undefined function oci_connect() in C:\xampp\htdocs\testoracle.php on line 2
<?php
$conn= oci_connect('system','SYSDBA','localhost/PAM');
if (!$conn){
$e = oci_error();
trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
}
Else {
echo "connection successful";
}
?>
merci pour l'aide
Partager