Oracle 8 OCI calls for windows NT, PHP version 4.2.3

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
TheeNickster
Forum Newbie
Posts: 4
Joined: Mon Nov 04, 2002 2:26 pm

Oracle 8 OCI calls for windows NT, PHP version 4.2.3

Post by TheeNickster »

I've got it loaded and working, and did a test app to a MYSQL database without a hitch.

Now I want to start accessing Oracle. I went into PHP.ini in my C:\winnt\system32 directory and uncommented the line:

extension=php_oci8.dll

Also checked to make sure my extensions directory was set to:

extension_dir = "d:\php\extensions"

Sure enough, there's a php_oci8.dll file in that directory. The documentation tells me that is all I need to connect to Oracle and start running queries with the OCI functions. When I run my test.php file I get:

Fatal error: Call to undefined function: ocilogon() in d:\aof\test.php on line 11

So what am I missing to get my PHP engine to know where the function is?

Needing serious guru help...

The Nickster...
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

try extension_dir=d:/php/extensions
use

Code: Select all

<?php phpinfo() ?>
to check available modules

also note the Requirements-section at http://www.php.net/manual/en/ref.oci8.php
hedge
Forum Contributor
Posts: 234
Joined: Fri Aug 30, 2002 10:19 am
Location: Calgary, AB, Canada

Post by hedge »

Is the oracle client installed on the box? The oci8.dll is just a wrapper to call the oracle dll's
TheeNickster
Forum Newbie
Posts: 4
Joined: Mon Nov 04, 2002 2:26 pm

Post by TheeNickster »

Tried it with both "/" and "\"... no dice. PHP info has a blank for "additional modules"....

The documentation told me to put php.ini in c:\winnt\system32... is that correct?
TheeNickster
Forum Newbie
Posts: 4
Joined: Mon Nov 04, 2002 2:26 pm

Post by TheeNickster »

Yes Hedge, this machine has the oracle networking on it...
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

mine is in c:\winnt.
phpinfo() tells you about the used php.ini as well.

install.txt:
Copy the file, php.ini-dist to your %WINDOWS% directory on
Windows 95/98 or to your %SYSTEMROOT% directory under Windows NT,
Windows 2000 or Windows XP and rename it to php.ini. Your %WINDOWS% or
%SYSTEMROOT% directory is typically:
c:\windows for Windows 95/98
c:\winnt or c:\winnt40 for NT/2000/XP servers
TheeNickster
Forum Newbie
Posts: 4
Joined: Mon Nov 04, 2002 2:26 pm

Post by TheeNickster »

Ok that did it... It finds the function. Thanx for the help :)
Post Reply