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访问服务器端的功能
<?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
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28