Encontre algo en el metalink
Thread Status: Closed
From: ANDREI OLIVEIRA 25-Jun-03 21:46
Subject: PHP 4.2.3 + Oracle 9i + Linux RedHat 8 + Apache 2.0 - Part3
PHP 4.2.3 + Oracle 9i + Linux RedHat 8 + Apache 2.0 - Part3
verify to Part2
Script php to test the connection through oci:
<?
putenv ("ORACLE_SID=sie");
putenv ("ORACLE_HOME=/home/oracle/product/9.2");
putenv ("NLS_LANG=american.america.WE8ISO8859P1");
$conn = OCIpLogon ("sie/
[email protected]", "");
if (! $conn)$conn=OCIpLogon ("sie/sie@sie", "");
if (! $conn)$conn=OCIpLogon ("sie/sie@sie-web", "");
if (! $conn)$conn=OCIpLogon ("
[email protected]", "sie");
if (! $conn)$conn=OCIpLogon ("sie@sie", "sie");
if (! $conn)$conn=OCIpLogon ("sie@sie-web", "sie");
if (! $conn)$conn=OCIpLogon ("sie", "sie", "sie.etpp.org.br");
if (! $conn)$conn=OCIpLogon ("sie", "sie", "sie");
if (! $conn)$conn=OCIpLogon ("sie", "sie", "sie-web");
if($conn)
echo "sucessful! ";
else
echo "<font color=red>Connect to database failed! ";
?>