Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2004-10-30
5
Medium Priority
?
186 Views
Last Modified: 2013-12-12
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
0
Comment
Question by:sdamesek
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 10

Expert Comment

by:frugle
ID: 12453943
> 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
 

Author Comment

by:sdamesek
ID: 12466673
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
 
LVL 10

Accepted Solution

by:
frugle earned 1000 total points
ID: 12467705
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question