LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   connecting to Sybase server (https://www.linuxquestions.org/questions/linux-software-2/connecting-to-sybase-server-825854/)

v1rt 08-12-2010 01:24 PM

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.

TB0ne 08-12-2010 01:46 PM

Quote:

Originally Posted by v1rt (Post 4064431)
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.

HasC 08-12-2010 02:14 PM

I have some Sybase SQLAnywhere servers, and my PHP apps connect to them using ODBC

v1rt 08-12-2010 05:23 PM

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.


All times are GMT -5. The time now is 06:20 PM.