Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 03-01-2005, 02:18 AM   #1
LQ Newbie
Registered: Mar 2005
Posts: 2

Rep: Reputation: 0
Unhappy PHP and Sybase

Hello all!

I have this code in PHP to connect to SYBASE, on a different server:

PHP Code:
$SEGMENT_INFO = array(
=> 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?

Please help..

Old 03-02-2005, 02:10 AM   #2
Registered: Jun 2003
Location: Toronto, Ontario, Canada
Posts: 288

Rep: Reputation: 30
Well, it looks like it can't find the database dbtest at the server. Make sure the server is up and the database exists?
Old 03-02-2005, 08:23 PM   #3
LQ Newbie
Registered: Mar 2005
Posts: 2

Original Poster
Rep: Reputation: 0


Thanks for the reply..

Yes, the database exists and the server is up and running... Don't know why it still cannot connect...
Maybe there's something wrong with my SYBASE setting.........


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sybase Install? PerfectReign Linux - Software 2 12-21-2007 05:09 AM
unixODBC and sybase eantoranz Programming 3 12-20-2005 01:54 PM
SYBASE 11.9.2 on Slackware 10.1 thick_guy_9 Slackware 1 09-05-2005 06:48 PM
setting up PHP to run Sybase-ct on Fedora 3 zum Linux - Software 1 01-03-2005 05:10 PM
qt+sybase+tds drenal Programming 0 06-06-2004 05:47 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration