Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback, please email oracle-forums_moderators_us@oracle.com

Unable to connect to oracle with "bool(false)" message

696154Aug 3 2011 — edited Aug 12 2011
Hi,
my php unable to connect to database with message "bool(false)"

connect string :
$c = oci_connect("userid", "pwd", "db");
if (!$c)
{echo "unable to connect: ". var_dump(oci_error());
die();}

os : Linux Centos 5.2
php version : php 5.1.6
apache version : 2.2.3
Oracle version : 10g Rel.2
Oracle + apache + php on the same machine.

i hv followed instruction from php.net/manuel/en/oci8.installation.php and my oci8 environment was set as my oracle bash_profile environment but still can't get connected.

is there any post similiar with this ?
any help would be appreciated.
tks.

Edited by: HeLmi on Aug 3, 2011 2:40 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 9 2011
Added on Aug 3 2011
5 comments
523 views