PHP 5.0.2 on Windows 2003 connecting to a remote Oracle 9i

I've installed PHP 5.0.2 on Windows 2003 Web Server. The standard PHPINFO page is correctly displayed, but I don't know how to tell if the extensions are properly loading (i am using OCI8). When I run the Oracle test page it failed to load the OCI_LOGIN function. I'm guessing that the extension is not being loaded because IIS6 is much more restrictive on what DLLS it will allow to be loaded.

I've been working with the INVISION BBS people, but this not their problem. Is there a recommended procedure for

1) locating the PHP.INI file (does the system really need a reboot after changes?)
2) once the OCI8 extension is enabled - is there a new section added to PHPINFO?
3) in addition to adding the PHP5 DLL to the allowed web extension, do I need to add anything else (maybe the extensions?)

I've found references for Windows 2000 - but nothing in the IIS6 world.

Thanks
Scott Damesek
sdamesekAsked:
Who is Participating?
 
frugleConnect With a Mentor Commented:
From reading several similar questions I would guess that Oracle Client Libraries/developer tools may need to be installed from the Oracle CD, and relevant environment variables set, but I don't know if your php binary has Oracle support built in. This question has surpassed my knowledge of Oracle...

If no experts in this TA can assist, maybe a 20 point "pointer" question in the Oracle TA - http://www.experts-exchange.com/Databases/Oracle/

Good luck,

Mike
0
 
frugleCommented:
> 1) locating the PHP.INI file (does the system really need a reboot after changes?)

php.ini should be in the php installation directory, the windows directory, or possibly the windows system directory. It could also be anywhere on your path.  I would recommend only having one php.ini - and you shouldn't need a reboot but you WILL need to stop and start (or restart) IIS.

> 2) once the OCI8 extension is enabled - is there a new section added to PHPINFO?

not entirely sure about this - I have read somewhere recently that something needed to be compiled into php after the oracle developer tools had been installed, but this may have been more to do with apache. I'll let an oracle expert comment on this one.

> 3) in addition to adding the PHP5 DLL to the allowed web extension, do I need to add anything else (maybe the extensions?)

you need to specify in IIS how to handle .php files - this will depend on whether it is running as a cgi or as an isapi filter. If your phpinfo() is rendering, this is a good sign that you have already done this step and it is working.

You have enabled (uncommented) ;extension=php_oci8.dll (your Q2) so as long as php_oci8.dll is present on your system (in the extensions directory) there shouldn't be anything else to do.  Is ;extension=php_oracle.dll uncommented too?

When you restart IIS I would recommend doing it from the console with net stop and net start, then you will get any errors displayed.

Mike
0
 
sdamesekAuthor Commented:
I installed the Windows binaries from PHP.NET.
1) I can enable select extensions and then appear in the PHPINFO list.
1) When I enable Oracle the page stalls. The PHPINFO section does not include any "with oracle" statements? Does PHP need to be rebuilt with oracle? If so, is that available for download anywhere?
Scott
0
All Courses

From novice to tech pro — start learning today.