你最好仔细的看一下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
解决方案 »
- php 中的session 和cakephp中的session有什么区别
- php怎么过滤一个网页让他只输出其中一个DIV中的内容??要用XML吗?
- 前辈指点一些开发问题
- 我没用过php,但现在想做个在线信息提交入mysql的页面只可以用php写程序,各位高手,有没有这方面的例子啊,给个给我研究一下,小女子感激不尽
- 用iconv转换ISO-8859-1到GB2312后,文章内容被截断
- 分页问题
- 能不能当window.open()打开页面时,被打开页面不点击,不按键就自动提交一个表单!!(急用,第一个解决的,给满分)
- 如何在WIN2K下把MYSQL安装成自动的服务?
- 急救,帮忙解释个函数!谢谢谢谢谢谢了
- 限制客户端访问频率
- 由于跟公司老板在理念上有偏差.以至于跟他闹翻,看来该重新找工作了.散分呀!!!
- 安装PHP不安装apache用IIS可以吗,意思是在IIS上同时可以跑ASP和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,你的办法我用不了,但谢谢你的回答,我会给你记分数的。我的问题继续......