Home >Backend Development >PHP Tutorial >NUSOAP在PHP5下出错“SoapClient:SoapClient() expects parameter 2 to be array”解决思路

NUSOAP在PHP5下出错“SoapClient:SoapClient() expects parameter 2 to be array”解决思路

WBOY
WBOYOriginal
2016-06-13 10:15:47929browse

NUSOAP在PHP5下出错“SoapClient::SoapClient() expects parameter 2 to be array”
PHP Warning: SoapClient::SoapClient() expects parameter 2 to be array, boolean given in aaa.php on line 61
PHP Fatal error: SoapClient::SoapClient(): Invalid parameters in aaa.php on line 61

原因是nusoap的SoapClient类和php5内置的SOAP类有冲突。

解决方案

1. 修改php.ini不加载php5内置的soap扩展(windows下是php_soap.dll)。

2. 也有给nusoap的SoapClient类改名的。

3. 改用php4 也行


2,3忽略不计,1的话虚拟主机设置不了,,问问能用代码实现不???

------解决方案--------------------
我会了,结贴。。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:怎么学习php套页面Next article:PHP提取XML有关问题