Forum Stats

  • 3,874,704 Users
  • 2,266,767 Discussions


Xammp+oracle 11g+php

edited Apr 11, 2019 11:50PM in PHP

Hello, I finally got php to load the oic8 extension. However php and oracle are on the same machine and with these changes the software that uses oracle can not connect to oracle. How can I define two Variable Paths?

Christopher Jones-Oracle


  • Gaz in Oz
    Gaz in Oz Member Posts: 3,785 Bronze Crown
    edited Jan 11, 2019 8:53PM

    Sounds like you made the wrong changes to get php to "work".

    php and Oracle can happily co-exist on the same machine. Changing stuff to the php install should NOT affect the database install.

    Please be more specific on your setup and what you mean by "software that uses Oracle cannot connect".

    Defining "two Variable paths" is easy. Use batch/shell scripts.

    Make one for php, set PATH to whatever you need it set to and call it before executing any php code.

    Make one for the "software thatuses Oracle and cannot connect", set the PATH to whatever you need itset to and call it accordingly ...

    The OS will govern how you do the above.

    Refer to my first statement, really it does sound like you have made the wrong changes to get php to "work".

    Christopher Jones-Oracle
  • vansul
    vansul Member Posts: 438
    edited Apr 11, 2019 11:50PM

    You may use a batch shell script, define the variable before calling the dependent application.