PHP Class SoapClient not found solution, soapclientfound

Source: Internet
Author: User
Tags zts

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

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.