在 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

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

Set-up PHP SOAP Extension in Windows

phpsoap

提问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 文档,您需要做的就是:

  1. Locate your php.inifile. This is normally under your <php_home>folder (for example, C:/PHP5).
  2. Search for and uncomment the line that says ;extension=php_soap.dll, by removing the first ;character, to make it looks like extension=php_soap.dll
  3. Then restart your server.
  1. 找到您的php.ini文件。这通常位于您的<php_home>文件夹下(例如,C:/PHP5)。
  2. ;extension=php_soap.dll通过删除第一个;字符搜索并取消注释该行,使其看起来像extension=php_soap.dll
  3. 然后重启你的服务器。

Note that the php_soap.dllis included in the default PHP5 distribution, and you can find it under the <php_home>/extfolder.

请注意,php_soap.dll包含在默认的 PHP5 发行版中,您可以在<php_home>/ext文件夹下找到它。

Hope this helps.

希望这可以帮助。

回答by Irfan Ali

1: Find extension=php_soap.dllin php.iniand remove the semicolon(;)

1:extension=php_soap.dllphp.ini中找到并去掉分号( ;)

2: Restart your Server

2:重启你的服务器

Reference : See here

参考:见这里

回答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. 我用的是开发版。

  1. Uncomment "extension_dir" option, use the "on Windows" option. eg.
  1. 取消注释“extension_dir”选项,使用“on Windows”选项。例如。

;extension_dir = "ext"

;extension_dir = "ext"

  1. Uncomment
  1. 取消注释

;extension=php_soap.dll

;扩展= p​​hp_soap.dll

  1. Restart server
  1. 重启服务器

回答by Motiur Rahaman

  1. open php.ini file in your text editor.
  2. Find ;extension=soap
  3. Remove ;
  4. Save changes
  5. Start the server again.
  1. 在文本编辑器中打开 php.ini 文件。
  2. ;extension=soap
  3. 消除 ;
  4. 保存更改
  5. 再次启动服务器。