你最好仔细的看一下php文档中有关dbx的部分。
http://cn.php.net/manual/en/ref.dbx.php
http://cn.php.net/manual/en/function.dbx-connect.php
http://cn.php.net/manual/en/ref.dbx.php
http://cn.php.net/manual/en/function.dbx-connect.php
$conn = dbx_connect(DBX_MSSQL, "db_host", "db", "username", "password") or die("Could not connect");
Parse error: parse error, expecting `','' or `';'' in /var/www/html/p.php on line 3
这是语法错误,仔细检查一下
<?
$conn=dbx_connect(mssql,"192.168.0.1","table","sa","sb");
?>
是那里写错了?
Could not nnect
The dbx-functions themselves do not interface directly to the databases, but interface to the modules that are used to support these databases.
windows:
extension=php_mssql.dll
Linux就应该要
extension=php_mssql.so
必需要用mssql.so.没试过,估计是这样.大家别K我.
query tcp tds7.0 DBServerIPAddress DBServerTCPPort
master tcp tds7.0 DBServerIPAddress DBServerTCPPort如果需要连接多个Server,照样增加这样的配置行即可。在你配置PHP之前把这两个包装上,然后在 php 的配置参数中加上 --with-sybase-ct=/opt/sybase-11.9.2 ,或者 --with-sybase=/opt/sybase-11.9.2 即可。注意,在最近版本的 php 当中,多了一个 --with-mssql 的配置选项,这个是用来和 FreeTDS 库一起用的,不适合 Sybase 这个库。其他安装配置过程略。
(SunADM)
----------------------------------------------------我用的是比较新的Linux 红旗4.1,你的办法我用不了,但谢谢你的回答,我会给你记分数的。我的问题继续......