I am using the following code to coonect to a oracle 10g server on a different server (host). I am using the following script to connect to oracle server.
<?php
include "adodb/adodb.inc.php";
$host='IP addr';
$port='1521';
$sid='dbname';
$cstr = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=$host)(PORT=$port))(CONNECT_DATA=(SID=$sid)))";
$conn->Connect($cstr, 'username', 'passwd');
?>
But when i execute this sript i receive an error as
Fatal error: Call to a member function Connect() on a non-object in E:\xampp\htdocs\xampp\oracle.php on line 16
i am using PHP Version 5.2.3
Please help me to sort out this error
Thanks in advance