Why is there a PHP Class soapclient not found problem and workaround

Source: Internet
Author: User
Tags soap php class zts
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.