AMFPHP如何获取由flex调度的php中的对象?
我正在使用 AMFPHP,并且遇到了这个问题
->我正在使用带有 AMFPHP 网关的 XAMPP 服务器来实现 Flex,这对于从 PHP 返回值来说效果很好
;问题是我如何在 php 中获取我使用 Flex 代码传递给 pap 类的对象:-
connection.objectEncoding = ObjectEncoding.AMF3;
connection.connect("http://localhost/flashservices/gateway.php");
var obj:Employ = new Employ(inputs.ename.text,inputs.occu.text,inputs.adder.text,inputs.ph.text );
var responder = new Responder(recvdata,recverror);
connection.call("Employ.employrecord.employdata.insertrecord",responder,obj);
-& gt obj 是一个雇佣类对象,我想在 php 类中获取它,但如何
提前“需要帮助”
i am working on AMFPHP and i had this problem
-> i am using XAMPP server with AMFPHP gate way for flex and this is working well for returning values from PHP
->the problem is how can i get the object in php which i passed to the pap class using flex code is here:-
connection.objectEncoding = ObjectEncoding.AMF3;
connection.connect("http://localhost/flashservices/gateway.php");
var obj:Employ = new Employ(inputs.ename.text,inputs.occu.text,inputs.adder.text,inputs.ph.text );
var responder = new Responder(recvdata,recverror);
connection.call("Employ.employrecord.employdata.insertrecord",responder,obj);
the obj is a employ class object and i want to get it in php class but how "need help"
thanx in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AMFPHP 将处理将 Flash/Flex 数据结构转换为 PHP 等效项的繁重工作。最多您应该定义一个服务处理程序并为该方法提供适当的参数,以便 AMF 可以将客户端数据传递给 PHP 处理程序。
此处有一个很好的示例,说明了该过程的双方。
AMFPHP will handle the heavy lifting of converting the Flash/Flex data structures into PHP equivalents. At most you should just define a service handler and provide the appropriate arguments for the method so AMF can pass the client-side data to the PHP handler.
There's a decent example of both sides of the process here.