Issues connecting to my Oracle Database with PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ridlet3981
Forum Newbie
Posts: 2
Joined: Wed Oct 29, 2008 3:12 pm

Issues connecting to my Oracle Database with PHP

Post 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!
Post Reply