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

╄→尐↘猪︶ㄣ 提交于 2019-12-08 03:15:31

问题


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

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

Clearly, this PHP lacks the mssql support.

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

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

Our show stops with this fataller!

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


回答1:


extension=php_mssql.dll

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

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



来源:https://stackoverflow.com/questions/9106636/ms-sql-and-php-ini-how-to-enable-mssql-support-in-php-in-iis7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!