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...
Oracle 8 OCI calls for windows NT, PHP version 4.2.3
Moderator: General Moderators
-
TheeNickster
- Forum Newbie
- Posts: 4
- Joined: Mon Nov 04, 2002 2:26 pm
try extension_dir=d:/php/extensions
useto check available modules
also note the Requirements-section at http://www.php.net/manual/en/ref.oci8.php
use
Code: Select all
<?php phpinfo() ?>also note the Requirements-section at http://www.php.net/manual/en/ref.oci8.php
-
TheeNickster
- Forum Newbie
- Posts: 4
- Joined: Mon Nov 04, 2002 2:26 pm
-
TheeNickster
- Forum Newbie
- Posts: 4
- Joined: Mon Nov 04, 2002 2:26 pm
mine is in c:\winnt.
phpinfo() tells you about the used php.ini as well.
install.txt:
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