+ -
当前位置:首页 → 问答吧 → php 访问slice文件 Ice_loadProfile版本不兼容问题求助

php 访问slice文件 Ice_loadProfile版本不兼容问题求助

时间:2011-12-20

来源:互联网

实现一个php开发客户端,通过ice中间件访问服务器端的demo程序代码如下:
<?php  

require 'Ice.php';  

ini_set("display_errors","1");  

global $ICE;  

Ice_loadFile("profile_Conn");  

try {  
  $Base=$ICE->stringToProxy("SimpleConn:default -h 172.16.0.210 -p 10000");  
  $Manager=$Base->ice_checkedCast("::Demo::IceTest");  
  $Properties=$Manager->insert("limengyu",25);  
  echo $Properties;  
  }  
  catch( Exception $e ) {  
  print_r($e);  
  }  
?>  
测试后报错如下:php error:call to undefined function Ice_loadprofile 
经查,原因如下:The Ice extension for PHP underwent significant changes in 3.4 and is not backward-compatible with Ice 3.3. There's a section in the 3.4 release notes that explains these changes.
求助使用ICE3.4.2的情况下,如何用php访问slice文件,从而完成php通过ice访问服务器端的功能

作者: leemengyu417   发布时间: 2011-12-20

自己顶起

作者: leemengyu417   发布时间: 2011-12-20

call to undefined function Ice_loadprofile

没有找到函数

你看看是不是
写错了
引入路径错了没

作者: xiachao2008   发布时间: 2011-12-20