Page 1 of 1

Issues connecting to my Oracle Database with PHP

Posted: Wed Oct 29, 2008 3:19 pm
by ridlet3981
Ok, I have tried everything I can think of and everything that I've found online about this to no avail... I need to connect to my Oracle Express database using PHP. This is the code I'm trying to use:

Code: Select all

<?php
    $connectMe = oci_connect('myUsername', 'myPassword', '//localhost/XE') or die("Could not connect: " . oci_error());
?>
I have even modified my php.ini file... I've uncommented extension = php_oci8.dll and I've changed the extension_dir = C:\PHP\ext, which is where the php_oci8.dll is located. I'm not sure what else I can do. I keep getting the following error:

Fatal error: Call to undefined function oci_connect() in C:\Web\MyPHP\phpOraclePractice.php on line 2

Anyone have any ideas? I'm open to anything at this point! :banghead:

Thanks in advance!