I have this code in PHP to connect to SYBASE, on a different server:
$SEGMENT_INFO = array(
1 => array("dsn" => "sybase://test:testpas@IPADDRESS/dbtest"));
$dsn = $SEGMENT_INFO[$segid]["dsn"];
$db = DB::connect($dsn, array("debug" => 2));
Everytime I access my webpage, I get this error:
db_error Object ( [error_message_prefix] => [mode] => 1 [level] => 1024 [code] => -25 [message] => DB Error: no such database [userinfo] => sybase://test:testpas@IPADDRESS
/dbtest [callback] => )
I am using linux for both PHP and sybase server. I don't know what seems to be the problem.
What else should I set in sybase server?