在 Windows 中设置 PHP SOAP 扩展
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/29934167/
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
Set-up PHP SOAP Extension in Windows
提问by User122113
I'm having a lot of confusions on how to set up PHP SOAP extension in windows based on what's on the net.
我对如何根据网络上的内容在 Windows 中设置 PHP SOAP 扩展有很多困惑。
Could you please help me, how would I be able to do it?
你能帮我吗,我该怎么做?
Any suggested references?
有什么推荐的参考吗?
回答by ivan.sim
Referring to the PHP docs, all you need to do is:
参考PHP 文档,您需要做的就是:
- Locate your
php.ini
file. This is normally under your<php_home>
folder (for example,C:/PHP5
). - Search for and uncomment the line that says
;extension=php_soap.dll
, by removing the first;
character, to make it looks likeextension=php_soap.dll
- Then restart your server.
- 找到您的
php.ini
文件。这通常位于您的<php_home>
文件夹下(例如,C:/PHP5
)。 ;extension=php_soap.dll
通过删除第一个;
字符搜索并取消注释该行,使其看起来像extension=php_soap.dll
- 然后重启你的服务器。
Note that the php_soap.dll
is included in the default PHP5 distribution, and you can find it under the <php_home>/ext
folder.
请注意,php_soap.dll
包含在默认的 PHP5 发行版中,您可以在<php_home>/ext
文件夹下找到它。
Hope this helps.
希望这可以帮助。
回答by Irfan Ali
回答by LAamanni
This worked for me on PHP 5.6.33 nts x64. Open php.ini from PHP install-dir eg. C:/PHP5633-nts_x64/php-ini. I'm using the development version.
这在 PHP 5.6.33 nts x64 上对我有用。从 PHP install-dir 打开 php.ini 例如。C:/PHP5633-nts_x64/php-ini. 我用的是开发版。
- Uncomment "extension_dir" option, use the "on Windows" option. eg.
- 取消注释“extension_dir”选项,使用“on Windows”选项。例如。
;extension_dir = "ext"
;extension_dir = "ext"
- Uncomment
- 取消注释
;extension=php_soap.dll
;扩展= php_soap.dll
- Restart server
- 重启服务器
回答by Motiur Rahaman
- open php.ini file in your text editor.
- Find
;extension=soap
- Remove
;
- Save changes
- Start the server again.
- 在文本编辑器中打开 php.ini 文件。
- 找
;extension=soap
- 消除
;
- 保存更改
- 再次启动服务器。