ssh> cd /usr/local/etc
ssh> vi freetds.conf
寫成以下
[sybase_db1]
host = 10.10.10.1
port = 4000
tds version = 5.0
client charset = utf8
[sybase_db2]
host = 10.10.10.2
port = 4000
tds version = 5.0
client charset = utf8
這樣php在連sybase資料庫時可寫成
sybase_connect("sybase_db1","帳號","密碼","編碼big5或utf8",'');
沒有留言:
張貼留言