problem with adodb, php5, linux and oracle.
Posted: Fri Sep 07, 2007 4:38 am
Helo;
please everybody, I have a problem when trying to connect to an Oracle database with php5 on linux using adodb.
1) first script
2) second script
3) third script
in each case, when i run the script with firefox, it try to download the page instead of display it; when i use internet explorer, it returns an error: "Impossible d'afficher la page".
I tried many other method, but i had the same result. I need your help please.
please everybody, I have a problem when trying to connect to an Oracle database with php5 on linux using adodb.
1) first script
Code: Select all
include("adodb/adodb.inc.php");
$conn = NewADOConnection('oci8');
$connid=$conn->Connect($host,$user,$password,$tnsname);Code: Select all
include("adodb/adodb.inc.php");
$conn = NewADOConnection('oci8');
$connid=$conn->Connect($tnsname,$user,$password);Code: Select all
include("adodb/adodb.inc.php");
$cstr = "MYSERVICE=(DESCRIPTION =(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=$host)(PORT = $port)))(CONNECT_DATA=(SERVICE_NAME = MYSERVICE)))";
$connid= $conn->Connect($cstr, $user, $password);I tried many other method, but i had the same result. I need your help please.