logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Apache/PHP/Oracle
Author
Jay445



Joined: 18 Oct 2007
Posts: 2

PostPosted: Thu 18 Oct '07 9:48    Post subject: Apache/PHP/Oracle Reply with quote

Hi all,

i'm not sure if this is the right place to post Oracle questions, but i'm going to try anyway. Thanks in advance for any help!

I'm using Windows XP, Apache 2.2.3, PHP 5.2.4 and Oracle 10g XE.

I've set it all up, and PHP is working fine on my server. However i'm having a bit of trouble with Oracle. I've pointed php.ini to the correct ext directory, and i've 'uncommented' the line "extension = php_oci8.dll".

However when I go to connect to the database, I get the error "Call to undefined function: ora_logon()/ ocilogon()" I checked phpinfo, and the module has not been activated which explains the error.

I've spent hours upon hours troubleshooting this with no luck.

I'm at a bit of a loss how to do this? Is it an Apache, PHP or Oracle problem?

Any help would be much appreciated. .
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Fri 19 Oct '07 0:57    Post subject: Reply with quote

It seems that PHP didn't load the extension.
Did you set the right path for the extensions in php.ini?

e.g.
Code:

extension_dir = "c:/php5/ext/"
Back to top
Jay445



Joined: 18 Oct 2007
Posts: 2

PostPosted: Fri 19 Oct '07 2:06    Post subject: Reply with quote

Yup, it's set correctly. I just double checked.. but still no luck Sad

Any other ideas?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Fri 19 Oct '07 10:43    Post subject: Reply with quote

You may run phpinfo(); to see if the driver is loaded.
Also in php.ini

log_errors = on
error_log = C:/php5/phperror.log

Also you may download the pecl from php.net and also load php_oracle.dll

extension = php_oci8.dll
extension = php_oracle.dll

I haven't tested it.
Back to top


Reply to topic   Topic: Apache/PHP/Oracle View previous topic :: View next topic
Post new topic   Forum Index -> Other Software