This article mainly introduces the PHP Class soapclient not found solution, the need for friends can refer to the following
To use the soapclient, new a hint Class ' soapclient ' not found, check the next phpinfo, the reason is not compiled this extension, had to now add.
PHP reported an error similar to the following when calling WebService:
( ! ) Fatal error:class ' soapclient ' not found in e:/websrv/ci/system/libraries/webservice.php on line 17
Workaround:
Open the php.ini, find the Php_soap.dll, remove the front semicolon.
; Extension=php_soap.dll
The premise is that Php_soap.dll has been installed
The author's PHP installed in the/usr/local/php/directory, if not installed can refer to the following methods
$ cd/home/downloads/php-5.6.12 # Enter the PHP source directory $ cd ext/soap # into the SOAP extension directory $/usr/local/php/bin/phpize # ready to add extension $. Configure-with-php-config=/usr/local/php/bin/php-config--enable-soap # enable soap$ make$ make install
After the extension installation is complete, the prompt extension is 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, 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 make effective
KILL-USR2 ' Cat/usr/local/php/var/run/php-fpm.pid '
Under Windows edit php.ini cancel the line comment
Extension=php_soap.dll
Related recommendations:
Workarounds for PHP Class soapclient not found
Lumen timezone time zone setting method
A brief explanation of the simple implementation method of PHP Nginx real-time output