Hi,
Hope this bit of info would help.
I'm running..
PWS on WinME + PHP4.0.6
Personal Oracle 8.1.7 on Win98
C:\php\extensions (php_oci8.dll stored here)
Did the ff. configs:
(php.ini):
; Directory in which the loadable extensions (modules) reside.
extension_dir=c:\php\extensions
;Windows Extensions
extension=php_oci8.dll
used the ff. code for testing..
(oracle_php_samp.php):
<?php
//-- db connection config --
putenv('ORACLE_HOME=c:\Oracle\Ora81');
$db_userid = "scott";
$db_passwd = "tiger";
$db_name = "ORACLDB"; // your SID from tnsnames.ora
$db_conn = ocilogon($db_userid, $db_passwd, $db_name);
//-- end db connection config --
$stmt = OCIParse($db_conn, "SELECT * FROM EMP");
OCIExecute($stmt);
// Start of table and column headings (ID and Name)
echo "<TABLE CELLSPACING=\"0\" CELLPADDING=\"3\" BORDER=\"1\">\n";
echo " <TR><TH>Name</TH><TH>Job</TH><TH>Salary</TH></TR>\n";
// Loop through results
while(OCIFetch($stmt))
{
echo " <TR>\n";
echo " <TD>" . OCIResult($stmt, "ENAME") . "</TD>\n";
echo " <TD>" . OCIResult($stmt, "JOB") . "</TD>\n";
echo " <TD>" . OCIResult($stmt, "SAL") . "</TD>\n";
echo " </TR>\n";
}
echo "</TABLE>\n";
OCIFreeStatement($stmt);
OCILogoff($db_conn);
?>
everything worked fine for me.. good luck.
Gary