|
主题: flash连接后台的问题
|
 何足挂齿
职务:普通成员
等级:1
金币:0.0
发贴:29
注册:2004/3/7 7:59:38
|
#162004/6/1 14:14:33
听说过amfphp吗? remoting淘汰了?晕~~搞笑~~MM公司有许多新品都依赖于这个技术 remoting只在flash里安装,大概相当于一个flash的组件吧 给你看个remoting与php的站, jolin.info/web/
编辑历史:[此帖最近一次被 何足挂齿 编辑过(编辑时间:2004-06-01 14:25:12)]
|
 UndeadCraft
职务:版主
等级:4
金币:10.0
发贴:1993
注册:2001/5/28 17:37:43
|
#172004/6/2 9:56:09
我的确没听过amfphp,至于喜欢用什么,那看个人爱好了。你说remoting只在FLASH里装?相当于FLASH的组件? 我想我的确是老了,我记的原来flash remoting好像是一个服务,是装在服务器端的,难道现在变成你说的组件了? 要不你传一个你用remoting做的东东给我试试,我没装remoting的,看只用PHP能不能运行吧。
|
 何足挂齿
职务:普通成员
等级:1
金币:0.0
发贴:29
注册:2004/3/7 7:59:38
|
#182004/6/2 18:42:10
前些日子做的测试~,试下 告诉我结果~~ 我的运行环境是xp+apache2.0.46+php4.3.3rc2+mysql4.1 相关文件: 点这儿打开
|
 manlead
职务:普通成员
等级:1
金币:1.0
发贴:159
注册:2004/4/23 20:34:25
|
#192004/6/3 16:51:01
第3位仁兄就一个单词就已经够了。你们还需要说这么多吗?参透参透吧
|
 UndeadCraft
职务:版主
等级:4
金币:10.0
发贴:1993
注册:2001/5/28 17:37:43
|
#202004/6/4 8:48:07
to 何足挂齿
我的测试环境 win2k+iis5+php4.3.3 没装mysql,我也没看到你有数据库文件。 改了gateway.php里的路径,运行怎么没反应呢?
|
 何足挂齿
职务:普通成员
等级:1
金币:0.0
发贴:29
注册:2004/3/7 7:59:38
|
#212004/6/4 9:13:38
哦,这个测试文件是不需要mysql的
iis下的php我没测试过
linux winxp下的apache 我都测试通过
另:gateway.php里的路径必须是系统路径,如: c:/....
|
 UndeadCraft
职务:版主
等级:4
金币:10.0
发贴:1993
注册:2001/5/28 17:37:43
|
#222004/6/4 9:52:28
我是用的绝对路径。
|
 何足挂齿
职务:普通成员
等级:1
金币:0.0
发贴:29
注册:2004/3/7 7:59:38
|
#232004/6/4 10:51:57
刚刚测试了一下iis下的. php采用的是ISAPI模块安装 结果果然不行 试着打开http://localhost:8080/php/remoting/hello/gateway.php 出现错误信息: Warning: main(D:\Inetpub\wwwroot\php emoting\flashservices\app\Gateway.php): failed to open stream: Invalid argument in d:\inetpub\wwwroot\php\remoting\hello\gateway.php on line 11 Warning: main(): Failed opening 'D:\Inetpub\wwwroot\php emoting\flashservices\app\Gateway.php' for inclusion (include_path='.;c:\php4\pear') in d:\inetpub\wwwroot\php\remoting\hello\gateway.php on line 11 Fatal error: Cannot instantiate non-existent class: gateway in d:\inetpub\wwwroot\php\remoting\hello\gateway.php on line 15 这个错误信息的第一行让我迷惑,Warning: main(D:\Inetpub\wwwroot\php 后少了 \r 看来毛病就在这里,试着把remoting目录改名,终于成功! \r不知怎么了 可能被转义了。 iis终归不适合运行php,而且速度慢了很多~~  另外一劳永逸的解决方法,把路径里的\换成/即可.
|
 UndeadCraft
职务:版主
等级:4
金币:10.0
发贴:1993
注册:2001/5/28 17:37:43
|
#242004/6/4 14:11:08
行了。 不过不知道FLA是怎么写的。不知道用起来是否方便 也不想研究了。就这样吧。
|
 何足挂齿
职务:普通成员
等级:1
金币:0.0
发贴:29
注册:2004/3/7 7:59:38
|
#252004/6/4 18:06:51
remoting使用起来绝对的方便 可以在flash里直接调用php里的函数!! 附fla原文件: 相关文件: 点这儿打开
|