Solved

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

Posted on 2004-10-30
168 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
Question by:sdamesek
    3 Comments
     
    LVL 10

    Expert Comment

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    Course: Foundations of Front-End Development

    Jump-start a lucrative career in front-end web development, with zero previous coding experience required. This course covers the basic programming concepts and languages required for creating engaging websites from scratch.

    Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
    Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
    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.
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    877 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

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now