From:             ramez at faraah dot com dot sa
Operating system: Win XP
PHP version:      4.3.1
PHP Bug Type:     OCI8 related
Bug description:  Connect To Oracle 9i using IIS & PHP

Description:
------------
Hello I am using Oracle9i release 2
it's comes with Apache
but i am using IIS and i don't want to use Apache.

how can i connect to Oracle DB from the IIS using PHP
i try to use 
=================
user:scott
Password:tiger
Service:RamezDB
=================
how can i do ti

Reproduce code:
---------------
<HTML>
<HEAD>
<TITLE>Using PHP to Read a Table in Oracle</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<CENTER><B>Employees</B>
<BR><BR>
<?php

$c1 = ocilogon("scott","tiger") or print("<br>Could not connet to
Oracle9i<br>");

$stmt = ociparse($c1," select * from emp");
  ociexecute($stmt,OCI_DEFAULT);
  echo $c1."----selecting\n\n";
  while (ocifetch($stmt))
    echo $c1." <".ociresult($stmt,"TEST").">\n\n";
  echo $c1."----done\n\n";

Expected result:
----------------
to reterive the data from Oracle9i

Actual result:
--------------
Warning: _oci_open_server: ORA-12560: TNS:protocol adapter error in
c:\inetpub\wwwroot\oracle\test.php on line 10

Could not connet to Oracle9i

Warning: ociparse(): supplied argument is not a valid OCI8-Connection
resource in c:\inetpub\wwwroot\oracle\test.php on line 13

Warning: ociexecute(): supplied argument is not a valid OCI8-Statement
resource in c:\inetpub\wwwroot\oracle\test.php on line 14
----selecting 
Warning: ocifetch(): supplied argument is not a valid OCI8-Statement
resource in c:\inetpub\wwwroot\oracle\test.php on line 16
----done 

-- 
Edit bug report at http://bugs.php.net/?id=25688&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25688&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25688&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25688&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25688&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25688&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25688&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25688&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25688&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25688&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25688&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25688&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25688&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25688&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25688&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25688&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25688&r=float

Reply via email to