php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30401 connectivity to oci through apache
Submitted: 2004-10-11 19:51 UTC Modified: 2006-07-17 08:05 UTC
From: aazizi at comcast dot net Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 4.3.9 OS: Linux EL 30
Private report: No CVE-ID: None
 [2004-10-11 19:51 UTC] 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


 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-12 04:52 UTC] 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-12 07:03 UTC] tony2001@php.net
This happens just because your command-line version of PHP was built with OCI8 support and your Apache module wasn't.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 19:01:29 2024 UTC