简体   繁体   English

PHP 5.2.x和5.3.x关于SOAP库的区别

[英]Differences between PHP 5.2.x and 5.3.x with respect to the SOAP library

I have developed a PHP site using PHP 5.3.4 and deployed it to a server that has PHP 5.2.6 installed. 我已经使用PHP 5.3.4开发了一个PHP站点,并将其部署到已安装PHP 5.2.6的服务器上。 I am not doing anything fancy; 我没有做任何幻想; in fact, the only major library I am using is PHP's native SOAP library. 实际上,我使用的唯一主要库是PHP的本机SOAP库。

However, when I test my deployed site, I get the error: 但是,当我测试部署的站点时,我收到错误:

Fatal error: Class 'SoapClient' not found in (path) on line 20

Are there any major differences between PHP 5.2.x and 5.3.x with respect to the SOAP library? 就SOAP库而言,PHP 5.2.x和5.3.x之间是否有主要区别? I have already changed the configuration files. 我已经更改了配置文件。 (Well, actually I told the sysadmin to do it, because I don't have permission to do so.) And I get the same error. (嗯,实际上,我告诉系统管理员这样做,因为我没有这样做的权限。)而且我遇到了同样的错误。 Any ideas? 有任何想法吗?


EDIT: More information... 编辑:更多信息...

  1. I'm deploying my site to a Windows server. 我正在将站点部署到Windows服务器。

  2. The server has AppServ installed. 服务器已安装AppServ。

  3. For some reason I don't understand, PHP's configuration file is C:\\Windows\\php.ini instead of PHP_DIR\\php.ini . 由于某种原因,我不明白,PHP的配置文件是C:\\Windows\\php.ini而不是PHP_DIR\\php.ini

我不认为肥皂已安装在服务器上尝试

sudo aptitude install php-soap

change the following line in php.ini: 更改php.ini中的以下行:

;extension=php_soap.dll // before
extension=php_soap.dll // after

this enables the soap extension since PHP 5.0 从PHP 5.0开始,这将启用soap扩展

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM