来源于:http://trac.seagullproject.org/wiki/Integration/Amfphp

AMFPHP

什么是AMFPHP?

来自 http://www.amfphp.org/

Amfphp是PHP的一种RPC(Remote Procedure Call,远程过程调用)工具。它允许在PHP和下列插件之间无缝通讯:

  • 远程的Flash 和 Flex
  • 使用JSON (JavaScript Object Notation,一种轻量级的数据交换格式)的JavaScript和Ajax
  • 带有XML-RPC的XML客户端

什么是RPC?

来自 http://www.amfphp.org/

RPC (Remote Procedure Call,远程过程调用)在服务器和客户端之间通讯的确的方式。You call a method on a local object with various parameters, set a callback, and receive a result. 你无须考虑如何接收和发送数据。由于详细的实现细节被抽象了,所以看起来就和你是在调用一个本地访求一样。

要求

  • requires >= Seagull 0.6.2

安装

集成

要创建一个服务,将类放到<module>/classes/amfservices/<service>.php这个文件中

例如,你想在默认模块中调用一个服务实例,你只需将Example.php放在efault/classes/classes/amfservices/Example.php,然后使用URL快速查看一下:

http://seagull/index.php/default/

即将支持

  • 创建一个ServiceBrower模块。
  • This installation has only been tested with Flash and Flex Remoting
 
integration/amfphp.txt · 最后更改: 2010/05/30 00:21 (外部编辑)
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.2