Jump to content

oci_connect(Oracle) error on PHP & IIS ?


nhantam

Recommended Posts

$db = "(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)
(HOST = 192.168.1.2)(PORT = 1521)))
(CONNECT_DATA =(SERVER = DEDICATED)(SID = orcl)))";

$conn = oci_connect('aaa', 'bbb', $db);
$s = oci_parse($conn, 'select * from CLIACCT ');
oci_execute($s);
while (($row = oci_fetch_array($s, OCI_ASSOC)) != false ) {
   foreach ($row as $item) {
     print $item;
   }
} 

 

I'am connect other computer our LAN 192.168.1.2

my system IIS(WinXP) & PHP 5.2 error

Warning: oci_connect() [function.oci-connect]: OCIEnvNlsCreate() failed. 
There is something wrong with your system - 
please check that PATH includes the directory with Oracle Instant Client libraries 
in C:Inetpubwwwrootoracletest_2.php on line 111

 

But I am move my code above XAMP apache run OK. I don't understand why PHP & IIS error, could you help me ?

How do I to something on PHP & IIS ? Thank you very much.

 

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.