简体   繁体   English

在uwamp中安装sqlsrv扩展

[英]Install sqlsrv extension in uwamp

I tried to install sqlsrv extension in UWAMP. 我试图在UWAMP中安装sqlsrv扩展名。

I added the extension tag extension=php_sqlsrv_56_ts.dll in dir: wamp\\bin\\apache\\php.ini and I placed the file in: uwamp\\bin\\php\\php-5.6.18\\ext then I restarted the server. 我在目录: wamp\\bin\\apache\\php.ini添加了扩展标签extension=php_sqlsrv_56_ts.dll ,并将文件放置在: uwamp\\bin\\php\\php-5.6.18\\ext然后重新启动了服务器。

After that php.ini deleted the tag extension=php_sqlsrv_56_ts.dll from the file and the extension is not enabled and not shown in phpinfo() . 之后, php.ini从文件中删除了标签extension=php_sqlsrv_56_ts.dll ,并且该扩展名未启用且未在phpinfo()

The problem was in save the extension=php_sqlsrv_56_ts.dll the system each time when restart it will load the php_uwamp.ini and will overwrite the php.ini. 问题在于每次重新启动时,将extension = php_sqlsrv_56_ts.dll保存到系统中时,它将加载php_uwamp.ini并覆盖php.ini。 so we have to save it in php_uwamp.ini. 因此我们必须将其保存在php_uwamp.ini中。

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

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