Rumah > php教程 > php手册 > teks badan

PHP: 安装Soap扩展

WBOY
Lepaskan: 2016-06-06 19:51:02
asal
1156 orang telah melayarinya

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>
Salin selepas log masuk

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>
Salin selepas log masuk

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>
Salin selepas log masuk

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>
Salin selepas log masuk

Or in RHEL/Fedora you can install with:

<code><span>$ sudo yum install php</span><span>-</span><span>soap</span></code>
Salin selepas log masuk

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

Label berkaitan:
sumber:php.cn
Kenyataan Laman Web ini
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Cadangan popular
Tutorial Popular
Lagi>
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan