LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 03-01-2005, 03:18 AM   #1
snickers
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..

Thanks..
 
Old 03-02-2005, 03:10 AM   #2
coolman0stress
Member
 
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, 09:23 PM   #3
snickers
LQ Newbie
 
Registered: Mar 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Unhappy

Hello!

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.........
 
  


Reply


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 06:09 AM
unixODBC and sybase eantoranz Programming 3 12-20-2005 02:54 PM
SYBASE 11.9.2 on Slackware 10.1 thick_guy_9 Slackware 1 09-05-2005 07:48 PM
setting up PHP to run Sybase-ct on Fedora 3 zum Linux - Software 1 01-03-2005 06:10 PM
qt+sybase+tds drenal Programming 0 06-06-2004 06:47 PM


All times are GMT -5. The time now is 04:48 AM.

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