#30401 [Opn->Bgs]: connectivity to oci through apache
| From: | tony2001@php.net | Date: | Tue, 12 Oct 2004 05:03:45 +0000 |
| Subject: | #30401 [Opn->Bgs]: connectivity to oci through apache | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-67444@lists.php.net to get a copy of this message | ||
ID: 30401
Updated by: tony2001@php.net
Reported By: aazizi at comcast dot net
-Status: Open
+Status: Bogus
Bug Type: Oracle related
Operating System: Linux EL 30
PHP Version: 4.3.9
New Comment:
This happens just because your command-line version of PHP was built
with OCI8 support and your Apache module wasn't.
Previous Comments:
------------------------------------------------------------------------
[2004-10-12 04:52:06] cjbj at hotmail dot com
This report does not have enough information to qualify as a bug.
A good place to post the problem is to the php.db mail list, i.e.
http://news.php.net/group.php?group=php.db
Before doing that read:
http://www.oracle.com/technology/tech/opensource/php/php_troubleshooting_faq.html
and check your Apache and PHP environment variables.
------------------------------------------------------------------------
[2004-10-11 19:51:25] aazizi at comcast dot net
Description:
------------
I have tried and experience the following problem on three different
systems.
I have apache 2 + php + oracle8i client
This is my test script called oradbinfo.php:
<?php
if ($c=OCILogon("user", "pass", "mydb")) {
echo "Successfully connected to Oracle.\n";
} else {
$err = OCIError();
echo "Oracle Connect Error " . $err[text];
}?>
from the command line when I run:
php oradbinfo.php
I get: Successfully connected to Oracle.
However, when I brows the page through http browser,
I get:
Fatal error: Call to undefined function: ocilogon() in
/var/www/html/test.php on line 2
any clues,
-thanx
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30401&edit=1