problem with adodb, php5, linux and oracle.

Discussion in 'PHP' started by rostand, Sep 5, 2007.

  1. #1
    Helo;
    please everybody, I have a problem when trying to connect to an Oracle database with php5 on linux using adodb.

    1) first script

    include("adodb/adodb.inc.php");
    $conn = NewADOConnection('oci8');
    $connid=$conn->Connect($host,$user,$password,$tnsname);

    2) second script

    include("adodb/adodb.inc.php");
    $conn = NewADOConnection('oci8');
    $connid=$conn->Connect($tnsname,$user,$password);

    3) third script

    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);

    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.
     
    rostand, Sep 5, 2007 IP