Author Topic: oci_connect(Oracle) error on PHP & IIS ?  (Read 2424 times)

0 Members and 1 Guest are viewing this topic.

Offline nhantamTopic starter

  • Irregular
  • Posts: 1
  • Gender: Male
  • PHP Developer
    • View Profile
oci_connect(Oracle) error on PHP & IIS ?
« on: February 03, 2010, 02:11:36 AM »
$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($sOCI_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
Warningoci_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.
« Last Edit: February 03, 2010, 02:16:12 AM by nhantam »
PHP Developer