首頁 > php教程 > php手册 > PHP: 安装Soap扩展

PHP: 安装Soap扩展

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
發布: 2016-06-06 19:51:02
原創
1193 人瀏覽過

Getting SOAP working usually does not require compiling PHP from source. I would recommend trying that only as a last option. For good measure, check to see what your phpinfo says, if anything, about SOAP extensions: $ php - i | grep - i s

Getting SOAP working usually does not require compiling PHP from source. I would recommend trying that only as a last option.

For good measure, check to see what your phpinfo says, if anything, about SOAP extensions:

<code><span>$ php </span><span>-</span><span>i </span><span>|</span><span> grep </span><span>-</span><span>i soap</span></code>
登入後複製

to ensure that it is the PHP extension that is missing.

Assuming you do not see anything about SOAP in the phpinfo, see what PHP SOAP packages might be available to you.

In Ubuntu/Debian you can search with:

<code><span>$ apt</span><span>-</span><span>cache search php </span><span>|</span><span> grep </span><span>-</span><span>i soap</span></code>
登入後複製

or in RHEL/Fedora you can search with:

<code><span>$ yum search php </span><span>|</span><span> grep </span><span>-</span><span>i soap</span></code>
登入後複製

There are usually two PHP SOAP packages available to you, usually php-soap and php-nusoap. php-soap is typically what you get with configuring PHP with --enable-soap.

In Ubuntu/Debian you can install with:

<code><span>$ sudo apt</span><span>-</span><span>get</span><span> install php</span><span>-</span><span>soap</span></code>
登入後複製

Or in RHEL/Fedora you can install with:

<code><span>$ sudo yum install php</span><span>-</span><span>soap</span></code>
登入後複製

After the installation, you might need to place an ini file and restart Apache.

相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
最新問題
怎麼學好php
來自於 1970-01-01 08:00:00
0
0
0
PHP擴充intl
來自於 1970-01-01 08:00:00
0
0
0
php數據獲取?
來自於 1970-01-01 08:00:00
0
0
0
熱門推薦
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板