Jump to content

Set Windows Path on PHP load


Recommended Posts

Hey phpfreaks,

 

I've run in to a bit of an issue in order to use the Oracle php_oci8_11g.dll extension.

 

Issue is that, the extension doesn't load if my windows path has Oracle drivers, so for example this causes a conflict:

C:\Oracle\product\10.1.0\Client_2\bin;C:\Oracle\product\10.1.0\Client_2\jre\1.4.2\bin\client;C:\Oracle\product\10.1.0\Client_2\jre\1.4.2\bin;C:\PHP\;C:\PHP\instantclient_11_2

 

But if the path is set to this, then it works perfectly fine:

C:\PHP\;C:\PHP\instantclient_11_2

 

So any idea if I can set a variable or parameter in the PHP.ini to use a specific PATH instead?

Or something else that would accomplish the same without having to change the Windows path every time I start up the web server?

 

Thanks.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.