note 66786 rejected from ref.oci8 by bjori
| From: | bjori@php.net | Date: | Mon, 29 May 2006 12:10:33 +0000 |
| Subject: | note 66786 rejected from ref.oci8 by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-112496@lists.php.net to get a copy of this message | ||
Note Submitter: bgiao68 at yahoo dot com
----
I have a RHLE AS4.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 :
<html>
<?php
echo "I come here";
if ($c=OCILogon("giao", "tiger", "//localhost/bk119")) {
echo "Successfully connected to Oracle.\n";
OCILogoff($c);
} else {
$err = OCIError();
echo "Oracle Connect Error " . $err[text];
}
?>
<html>
It only appears
I come here
Because acording to the article at
http://www.oracle.com/technology/pub/notes/technote_php_instant.html
"Typically the database will be on another machine. If the database is local then Oracle
components will generally already be available and Instant Client is not required."
I checked the log file and it has an error :
[client 10.70.52.161] PHP Fatal error: Call to undefined function: ocilogon() in
/var/www/html/ora2.php on line 6
I downloaded php-5.1.4.tar.bz2 but I don't know how to complile php with RHLE.
My system has 2 accounts: root and oracle. Which account should I stand to compile php and after I
complied, my system has 2 php. The first is the original php in /etc and the second is in $HOME. I
only want to upgrade my php and it can connect to oracle.
Please tell me solution.