简体   繁体   English

PHP与SQL Server的连接

[英]PHP connection with SQL server

SQL server connection shows error when using mssql_connect() or sqlsrv_connect() .Call to undefined function mssql_connect() or Call to undefined function sqlsrv_connect() error is displaying. 使用mssql_connect()或sqlsrv_connect()时,SQL Server连接显示错误。显示对未定义函数mssql_connect()的调用或对未定义函数sqlsrv_connect()的调用。 In my server IIS and wamp server is running. 在我的服务器上,IIS和WAMP服务器正在运行。 can any one please help... 谁能帮忙...

"The MSSQL extension is enabled by adding extension=php_mssql.dll to php.ini." “通过将extension = php_mssql.dll添加到php.ini来启用MSSQL扩展。”

For more information : MSSQL Installing/Configuring 有关更多信息: MSSQL安装/配置

in the php.ini file remove the semicolon before the extention it will probably be in C:\\xampp\\php\\php.ini enable your extention by removing the semicolon change this with 在php.ini文件中,在扩展名之前删除分号,它可能在C:\\xampp\\php\\php.ini通过删除分号启用扩展名,方法如下:

 ;extension=php_mssql.dll

with

 extension=php_mssql.dll 

and restart your xampp 然后重启你的xampp

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM