PHP Class SoapClient not found solution, soapclientfound
To use SoapClient, a new prompt Class 'soapclient' not found is provided, and phpinfo is checked because the extension was not compiled at the beginning, so I have to add it now.
When php calls webservice, it reports the following similar errors:
(! ) Fatal error: Class 'soapclient' not found in E:/WebSrv/CI/system/libraries/WebService. php on line 17
Solution:
Open php. ini, find php_soap.dll, and remove the semicolon
; Extension = php_soap.dll
The premise is that php_soap.dll has been installed.
The author installed PHP In the/usr/local/php/directory. If it is not installed, refer to the following method.
$ Cd/home/downloads/php-5.6.12 # enter the PHP source directory $ cd ext/soap # enter the soap extension directory $/usr/local/php/bin/phpize # Prepare to add extensions $. /configure-with-php-config =/usr/local/php/bin/php-config -- enable-soap # enable SOAP $ make install
After the extension is installed, the system prompts that the extension has been installed in this directory:
Installing shared extensions:/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/
Edit the php. ini file, enable the extension_dir extension directory, and add the soap. so extension:
; Directory in which the loadable extensions (modules) reside .; http://php.net/extension-dirextension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/"; On windows:; extension_dir = "ext" extension = soap. so # add SOAP Extension
Restart php-fpm to make it take effect
kill -USR2 `cat /usr/local/php/var/run/php-fpm.pid`
In Windows, edit php. ini and uncomment this line.
Extension = php_soap.dll