Click to See Complete Forum and Search --> : oracle 9i + php: OCILogon() Fatal error


abhijeet
07-30-2002, 02:52 PM
Hi,

I've been trying to connect to an Oracle 9i database using PHP on a IIS web server, Php seems to be working fine but the database connectivity doesnt seem to be working. I get the following error:

Fatal error: Call to undefined function: ocilogon()

I have to made changes in my php.ini file ..

I first downloaded the php_oci8.dll file (however... i dont think this is needed bcos im running oracle 9i! ) and put it in my winnt directory, thats where the php.ini file picks up the dll from and I have modified this line in the php.ini file

extension_dir = ./

so that it now looks like

extension_dir = c:\winnt

Also, I've uncommented this line

;extension=php_oci8.dll


...both in the php.ini file which is located in my c:\winnt directory

is this correct ?

anybody with suggestions ...please let me know.

Thanks
Abhijeet

abhijeet
07-30-2002, 10:04 PM
Ok...to simplify ...

I have the php_ori8.dll and I can uncomment the line

;extension=php_oci8.dll

but ... do I have to modify the line

extension_dir = ./

in the php.ini file

so taht it points to the location where the .dll file is going to be ?

Please let me know .. thanks..