How PHP connect Oracle for Centos 4.0

Installation and support for Oracle DB on CentOS.
bangkok
Posts: 9
Joined: 2005/09/28 06:13:35

How PHP connect Oracle for Centos 4.0

Postby bangkok » 2006/05/17 10:51:06

I have a Centos 4.0 with php-4.3.9-3.1 and httpd-2.0.52-9.ent. I have just installed Oracle 10.1.0.4.0 and it did well.
I run phpinfo() and it's OK. However, I have another program :



echo "I come here";
if ($c=OCILogon("giao", "tiger", "bk119")) {
echo "Successfully connected to Oracle.\n";
OCILogoff($c);
} else {

$err = OCIError();
echo "Oracle Connect Error " . $err[text];
}
?>



It only appears
I come here

How can I use PHP to connect Oracle

Thank you

madcapone
Posts: 5
Joined: 2008/04/05 05:19:00

Re: How PHP connect Oracle for Centos 4.0

Postby madcapone » 2008/04/05 05:37:56

I'm a new user and I see you posted this in 2006, so I don't think you need an answer anymore, or do you? If you do, lemme know.

Cheers