Sybase / HPUX (Urgent HELP -- PLEASE.)
| From: | Harring Figueiredo | Date: | Sat, 29 Mar 2003 02:10:36 +0000 |
| Subject: | Sybase / HPUX (Urgent HELP -- PLEASE.) | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-26686@lists.php.net to get a copy of this message | ||
Folks,
I am trying to connect to a sybase server (12.5) using PEAR DB object.
When connecting to the database from Linux, everything goes as expected.
However, when running on HPUX (Apache 1.3.27/PHP 4.3.1 DSO), I get the
following error:
php_code:
$this->$db = @DB::connect("sybase://$DB_USR:$DB_PWD@$DB_HOST/");
if(DB::iserror($this->$db)) {
var_dump($this->$db);
die('Error connecting to databse:
'.$this->$db->getMessa
ge());
}
}
====== Prin out ===============
object(db_error)(7) { ["error_message_prefix"]=> string(0) ""
["mode"]=>
int(1) ["level"]=> int(1024) ["code"]=> int(-24)
["message"]=> string(24)
"DB Error: connect failed" ["userinfo"]=> string(31)
"sybase://arc:arcpwd@sybase12_5/" ["callback"]=> NULL } Error connecting to
databse: DB Error: connect failed
================================
The interfaces file that I am using is EXACTLY the same as the one on the
linux machine and it on the sybases standart place on HP.
I could not find anything on apache/php/sybase logs.
PLEASE HELP...
Thanks in advance..
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com