MS-SQL 和 PHP.INI - 如何在 IIS7 中的 PHP 中启用 mssql 支持

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9106636/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 06:11:06  来源:igfitidea点击:

MS-SQL and PHP.INI - how to enable mssql support in PHP in IIS7

phpsql-serveriis-7php-ini

提问by Average Joe

Currently, we are running PHP on Windows IIS7. And the relevant section from the php.ini reports this to me;

目前,我们在 Windows IIS7 上运行 PHP。php.ini 中的相关部分向我报告了这一点;

Configure Command   ....  "--without-mssql" "--without-pdo-mssql" ....

Clearly, this PHP lacks the mssql support.

很明显,这个 PHP 缺少 mssql 支持。

What does it take for the --without-mssqlphrase to disappear from the configure area and thus the support for mssql is present in the php compile?

--without-mssql句话从配置区域消失需要什么,从而在 php 编译中出现对 mssql 的支持?

So far, this is what we have done.

到目前为止,这就是我们所做的。

we enabled the php_mssql.dll as a php extension. we made sure that ntwdb.dll is in the same folder as php

我们启用了 php_mssql.dll 作为 php 扩展。我们确保 ntwdb.dll 与 php 位于同一文件夹中

Our show stops with this fataller!

我们的表演因这个致命的人而停止!

Fatal error: Call to undefined function mssql_connect() in ...

Fatal error: Call to undefined function mssql_connect() in ...

回答by ugur

extension=php_mssql.dll

扩展名=php_mssql.dll

Php Manuel php.ini Config (install mssql) document.

Php Manuel php.ini Config(安装mssql)文件。

http://php.net/manual/en/mssql.installation.php

http://php.net/manual/en/mssql.installation.php