Jump to content

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.

Link to comment
Share on other sites

  • 3 months later...

[!--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!

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...

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.

 

 

Link to comment
Share on other sites

  • 5 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.