Connexion à la base Oracle avec PHP
Bonjour Tout le monde,
je suis en train de développer une application web et je suis en train de connecter à la base oracle a travers du langage php, j'ai créer un page de connexion et j'ai insaller le client oracle sur mon machine sachant que le base oracle est distant !!
mais il m'affiche une des erreurs comme les suivants :
Warning: ocilogon() [function.ocilogon]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that PATH includes the directory with Oracle Instant Client libraries in C:\wamp\www\test\db_config.php on line 2
Citation:
<?php
$connect = ocilogon("Malogin","motdepasse","chainehote/nomdebase");
$stid = oci_parse($connect, 'SELECT * FROM pop_cdr_emm');
oci_execute($stid);
echo "<table border='1'>\n";
while ($row = oci_fetch_array($stid, OCI_ASSOC+OCI_RETURN_NULLS)) {
echo "<tr>\n";
foreach ($row as $item) {
echo " <td>" . ($item !== null ? htmlentities($item, ENT_QUOTES) : "") . "</td>\n";
}
echo "</tr>\n";
}
echo "</table>\n";
?>