This time for you to bring why PHP class SoapClient not found problems and solutions, to solve the PHP class SoapClient not found issues of attention to what, the following is the actual case, together to see.
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
Believe that you have read the case of this article you have mastered the method, more exciting please pay attention to the PHP Chinese network other related articles!
Recommended reading:
PHP echo with commas and use the dot number of steps to summarize
CI Framework (CodeIgniter) Operation Redis Step resolution