instantclient_setup_iis1.htm
Objectives:
  • A mix between two Oracle version : still operable
  • I realized this mix-ups after configuring FastCGI in IIS of window's 7 Ultimate.
  • This mix-ups was fixed, and documented else-where; archived this article as an anomaly.
Adding instant client in IIS : to use OCI8_11g module with PHP
Open FastCGI

Highlight

With right click select

Select Environmental

Add another variable

I added instant client within php554 folder and this folder has php-cgi.exe file too

 

<?php

// Connects to the XE service (i.e. database) on the "localhost" machine
$conn = oci_connect('hr', 'Son', 'localhost/orcl.gateway.2wire.net');
if (!$conn) {
$e = oci_error();
trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
}
echo" DB connected: querying a table <br/>";
$stid = oci_parse($conn, 'SELECT * FROM employees');
oci_execute($stid);

echo "<table border='1'>\n";
while($row = oci_fetch_array($stid, OCI_ASSOC+OCI_RETURN_NULLS)) {
echo "<tr>\n";
foreach ($row as $item) {
echo "<td>".($item !== null ? htmlentities($item, ENT_QUOTES):"&nbsp;")."</td>\n";
} //foreach ends
echo "</tr>\n";
}//while block ends
echo "</table>\n";

?>