1. 先安裝php5-sybase
sudo apt-get install php5-sybase
2. 設定freetds.conf
sudo vim /etc/freetds/freetds.conf
修改(增加)以下內容
[global]
client charset = UTF-8
charset = utf8
[sybase_db]
host = sybase host
port = 5000
tds version = 5.0
3.於php中,以sybase_connect("sybase_db","user","pass")連線