Page 1 of 1

Oracle 8 OCI calls for windows NT, PHP version 4.2.3

Posted: Mon Nov 04, 2002 2:26 pm
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...

Posted: Mon Nov 04, 2002 2:44 pm
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

Posted: Tue Nov 05, 2002 9:02 am
by hedge
Is the oracle client installed on the box? The oci8.dll is just a wrapper to call the oracle dll's

Posted: Tue Nov 05, 2002 9:02 am
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?

Posted: Tue Nov 05, 2002 9:03 am
by TheeNickster
Yes Hedge, this machine has the oracle networking on it...

Posted: Tue Nov 05, 2002 9:05 am
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

Posted: Tue Nov 05, 2002 12:23 pm
by TheeNickster
Ok that did it... It finds the function. Thanx for the help :)