LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-12-2010, 01:24 PM   #1
v1rt
LQ Newbie
 
Registered: Aug 2010
Posts: 6

Rep: Reputation: 0
connecting to Sybase server


Hey folks,

I need to reconfigure my php to have Sybase support. However, I am not sure which library to use. Can you guys help me out? I'll try freetds but I am not sure if it will work. I used it before with Microsoft MSSQL.

Any help would be greatly appreciated.

Thanks.
 
Old 08-12-2010, 01:46 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,689

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by v1rt View Post
Hey folks,

I need to reconfigure my php to have Sybase support. However, I am not sure which library to use. Can you guys help me out? I'll try freetds but I am not sure if it will work. I used it before with Microsoft MSSQL.

Any help would be greatly appreciated.

Thanks.
From a brief Google search:
http://www.php.net/manual/en/functio...se-connect.php
http://php.net/manual/en/ref.sybase.php

Should be installed with Apache2, as least it is on openSUSE 11.3. But you don't say what version/distro of Linux, or Apache. Without details, hard to say.
 
Old 08-12-2010, 02:14 PM   #3
HasC
Member
 
Registered: Oct 2009
Location: South America - Paraguay
Distribution: Debian 5 - Slackware 13.1 - Arch - Some others linuxes/*BSDs through KVM and Xen
Posts: 329

Rep: Reputation: 55
I have some Sybase SQLAnywhere servers, and my PHP apps connect to them using ODBC
 
Old 08-12-2010, 05:23 PM   #4
v1rt
LQ Newbie
 
Registered: Aug 2010
Posts: 6

Original Poster
Rep: Reputation: 0
I got it. I tried freetds again and it worked. I had to add SetEnv SYBASE pathtosybase in httpd.conf for php to recognize. After restarting apache, my mssql_connect worked.
 
  


Reply



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
Centos - SYBASE raggoflex Linux - Software 3 03-09-2010 07:51 PM
connecting sendmail server to Exchange server 2k3 amit_kalipur Linux - Server 0 06-11-2009 08:40 AM
Sybase Developers penright LinuxQuestions.org Member Intro 0 04-12-2007 10:47 AM
C + Sybase mfrick Programming 0 12-08-2005 09:45 PM
sybase with perl Xris718 Programming 0 02-18-2005 02:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:46 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
Open Source Consulting | Domain Registration