1846795 Members
4059 Online
110256 Solutions
New Discussion

Apache 2.0 php/oracle

 
Alex Lavrov
Regular Advisor

Apache 2.0 php/oracle

Hello,
In documentatio I see that it supports 8.1.6.

I have 8.1.7 and I did all it says in the manual (extention and env vars), but it still does not recongnizes ora_logon (for example) ...

could it be because it does not support 8.1.7 or am I missing something?

thanx.
5 REPLIES 5
Geoff Wild
Honored Contributor

Re: Apache 2.0 php/oracle

What is the exact error message?

Check out:

http://ca2.php.net/manual/en/function.ora-logon.php

There also a lot of documentation on oracle on php.net

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Alex Lavrov
Regular Advisor

Re: Apache 2.0 php/oracle

The error is:

Fatal error: Call to undefined function: ora_logon() in blabla.php on line 3


It looks like oracle extention was not enabled, but I did it and restarted apache ...
Geoff Wild
Honored Contributor

Re: Apache 2.0 php/oracle

Are you setting ORACLE_HOME in your php?

Check out:

http://www.php.net/manual/en/ref.oci8.php

Look in the output of phpinfo(); does the Oracle extension show up as loaded?

There's a lot of posts on google - just search for:

Fatal error: Call to undefined function: ora_logon

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Alex Lavrov
Regular Advisor

Re: Apache 2.0 php/oracle

sorry, for the delay ...

well, I'm looking on phpinfo(); output and that's what I'm seeing:

----------------------------------------
OCI8

OCI8 Support enabled
Revision $Revision: 1.183.2.5 $
Oracle Version no value
Compile-time ORACLE_HOME no value
Libraries Used no value
----------------------------------------

I set all the values in apachectl script, but it does not seem to work ...

thanx
Dave Avis_1
New Member

Re: Apache 2.0 php/oracle

I found out that the oci8 extension supports functions like ocilogon() instead of ora_logon(). The ora_logon() is supported by the oracle extension (which I don't have so I don't know what it looks like).

I'm using the HPWS depot from HP on 11.11 and I found a sample php script for the oci functions in /opt/hpws/apache/htdocs/oracle.php.