note 66786 added to ref.oci8
| From: | bgiao68 at yahoo dot com | Date: | Mon, 29 May 2006 10:00:08 +0000 |
| Subject: | note 66786 added to ref.oci8 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-112486@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 85.116.0.130
Probable Submitter: 203.162.3.148 (proxied: 222.253.125.151)
----
X-Spam-Status: No, hits=4.7 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER,
HTML_20_30,HTML_MESSAGE,HTML_TAG_BALANCE_HTML autolearn=no
version=2.64
----
Manual Page -- http://www.php.net/manual/en/ref.oci8.php
Edit -- http://master.php.net/note/edit/66786
Del: integrated -- http://master.php.net/note/delete/66786/integrated
Del: useless -- http://master.php.net/note/delete/66786/useless
Del: bad code -- http://master.php.net/note/delete/66786/bad+code
Del: spam -- http://master.php.net/note/delete/66786/spam
Del: non-english -- http://master.php.net/note/delete/66786/non-english
Del: in docs -- http://master.php.net/note/delete/66786/in+docs
Del: other reasons-- http://master.php.net/note/delete/66786
Reject -- http://master.php.net/note/reject/66786
Search -- http://master.php.net/manage/user-notes.php