AMFPHP如何获取由flex调度的php中的对象?

发布于 2024-09-28 21:09:23 字数 649 浏览 11 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

陌生 2024-10-05 21:09:23

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文