I'm trying to connect to an Oracle (10) db but can't get it to work.
Doesn't seem that you have to do that much. I activated the extension php_pdo_oci.dll in php.ini and restarted Apache.
I get:
could not find driver
Code: Select all
<?php
error_reporting(E_ALL);
ini_set("display_errors", 1);
$username = "xxx";
$password = "xxx";
$host = "xxx";
$dbname = "xxx";
try {
$dbh = new PDO("OCI:dbname=$dbname", $username, $password);
}
catch (PDOException $e)
{
echo $e->getMessage();
}
?>
Running Windows XP, PHP 5+, Apache 2+