So I am trying to connect to Oracle via Pear in PHP. I get the following error when I try to execute the connection...

MDB2 Error: not found, [Error message: extension oci8 is not compiled into PHP] **

The PHP version is 5.2.6 and the WAMP version is 2.0. I have the php_oci8 extension enabled. The oracle version is 9.2. I am running the PHP app on Windows XP. \MDB2\Driver\oci8.php is part of the included files.

I am just looking for some other options to try and trouble shoot this. Has anyone else been able to connect to Oracle through WAMP using PHP and Oracle? I am just looking for any other options I can look at, or if any one has any ideas on what I am going wrong.

I do not believe the error is a syntax error.

$dsn = 'oci8://wasabi:*********@bplex_db:1521/DATABASENAME';

Any suggestions would be most helpful.

Thanks in advance.

B

    just looking at our example code It just might be that you have a typo in your code:
    you wrote $dsn now.... if the variable is somewhere else set or called as $dns.... lol. Don't get me wrong; this is not an attempt to be funny, typo's can creep in without ever being obvious and cause hairsplitting debugging sessions without problems ever getting solved so just in case a typo is the cause of all this I thought i would post this message. 🙂

    Greets Mitch.

      Write a Reply...