Home  >  Article  >  php教程  >  php Call to undefined function mssql_connect()

php Call to undefined function mssql_connect()

WBOY
WBOYOriginal
2016-06-02 09:14:18927browse

现在想连接MSSQL2000,把MSSQL数据导入到MYSQL,发现链接不上MSSQL,提示 Call to undefined function mssql_connect().

已做步骤:

1:php.ini extension = php_mssql.dll前面分号去掉了

2:把php_mssql.dll复制到了ext目录下,ext目录是extension_dir目录,php_mssql.dll在PHP5里没找到,是从以前的PHP4里复制过来的,不知道可有版本问题.

3:修改了吧php_mssql.dll复制到了system32目录下了,也复制到了windows目录下了.

关键的一步没做!

将 ntwdblib.dll 置于系统的搜索路径中,将Sql Server 2000 升级至SP4,否则php能过mssql_connect是连接不上sql server的1433端口的.

本文地址:

转载随意,但请附上文章地址:-)

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn