Jump to content

Archived

This topic is now archived and is closed to further replies.

juicyapple

Call to undefined function ocilogon()

Recommended Posts

When I connect php to oracle, it shows

 

Fatal error: Call to undefined function ocilogon() in C:\Program Files\Apache Group\Apache2\htdocs\test.php on line 7

 

I have uncomment the line in c:\windows\php.ini

 

extension=php_oci8.dll

 

Do I need to move any dll files to system32 or...?

I have searched for solution long time...

 

Any help is really appreciated.

Thanks.

Share this post


Link to post
Share on other sites

[!--quoteo(post=337173:date=Jan 17 2006, 12:20 AM:name=juicyapple)--][div class=\'quotetop\']QUOTE(juicyapple @ Jan 17 2006, 12:20 AM) 337173[/snapback][/div][div class=\'quotemain\'][!--quotec--]

 

I have uncomment the line in c:\windows\php.ini

 

extension=php_oci8.dll

 

I was having the exact same problem, and this is what I did:

 

Make a little page that just has

<?php phpinfo() ?>

in it and see what the result says. Look for where PHP thinks the php.ini file is (You could probably search for "php.ini"). Make sure that's the one you edited. No other php.ini files make a difference. I'm running XAMPP and it put the .ini in a different spot than I thought it would: Apache\bin\php.ini. After you modify the php.ini file, you have to restart Apache for the settings to take effect. That should probably clear up your problem. You shouldn't have to move the .dll files anywhere.

 

Good luck!

Share this post


Link to post
Share on other sites

Hi!

 

 

I also have a couple of problems.

 

I use Windows XP, MS IIS and the PHP 5.1.4 installer from http://www.php.net and have installed Oracle Client and configured that to my db.

I want to connect to a Oracle 10 db on another server from a php web page.

Im a beginner to PHP.

 

My questions are:

 

1. Do I need to edit anything in php.ini to make this work?

I can find two names om dll files that i suspect have something to do with Oracle:

 

;extension=php_oci8.dll

;extension=php_oracle.dll

 

Do I need to activate any of those?

 

2. Since Im not good at PHP it would be very useful if I can look at example code that connects PHP to Oracle in a windows environment and IIS.

 

 

Very grateful if anybody can help me or give me links to where I can find help.

 

 

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.