Jump to content


Call to undefined function ocilogon()

  • Please log in to reply
4 replies to this topic

#1 juicyapple

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 17 January 2006 - 06:20 AM

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


Do I need to move any dll files to system32 or...?
I have searched for solution long time...

Any help is really appreciated.

#2 Daen

  • Members
  • PipPip
  • Member
  • 17 posts

Posted 04 May 2006 - 11:37 PM

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

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


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!

#3 birdonwire

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 24 May 2006 - 02:24 PM

you have to install oracle client to connect php to oracle

#4 Mikeman666

  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 13 July 2006 - 06:43 AM


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:


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.

#5 countnikon

  • Members
  • PipPip
  • Member
  • 19 posts

Posted 11 August 2006 - 02:45 PM

Install Zend Core for Oracle.  Thats what I did and it works fine.


Getting PHP and Oracle to work on Linux was a pain.  What version of Oracle are you going to use?  That will determine what version is necessary.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users