January 31, 2003
Flash Remoting with PHP

It was about time. Finally the first steps are made to use parts of the Flash Remoting functionalities also in PHP. It looks like a guy called Musicman has reverse engineered the Actionscript Message Format (short AMF) which is the binary format in which actionscript objects are packaged on the way from and to the server.

Of course this discovery has already created quite an echo. There is a forum dedicated to the issue on flash-db.com and a sourceforge project called amfphp has been started to bundle the research and development activities.

Remains the question what Macromedia thinks about all that. My guess is that they won't be too happy about it. At least they must have had their reasons not to release the AMF specs. And one of them is probably that you cannot earn money with PHP.

[Via Daniel Dura]

Posted at January 31, 2003 05:52 PM | Further reading

i built a version of remoting for php that doesnt use any of macromedia existing as or remoting code. i use wddx & my own AS class for it, hence macromedia shouldnt have any problem with it... id say try both out and see which you prefer....



Posted by: Nik on February 1, 2003 04:09 AM

this is simply genial, this is definetly something I and many others have been waiting for.

I think it would have been easy for MM to make a C extension (like php turbine or ming ) for php and also to make money on this.

I guess many more flash website are running on php servers than on ColdFusion, Java or .NET.
I think MM needs to sell ColdFusion.

This is a real big step to RAD for flash and the community.

Posted by: atomgas on February 1, 2003 11:58 AM

Overall, I think this was unavoidable. However, I will be very interested in seeing how Macromedia handles this. It is certainly a case of reverse engineering, but to pursue it would be a waste of time and resources.

My proposal to all Commercial software systems is to try to stay ahead and move forward. For MM to spend much time working to cover their tracks on this and bury it deeper, or send out the law firms is not only a waste of time, but more importantly a waste of resources.

I am a fan for the most part of the work Macromedia has done and they do deserve to benefit from it, and are. I look forward to more innovation on both sides, as even though we can see that they "cracked the egg", the difference is that these guys may show MM a thing or two which of course MM can make use of for free. In this game of software development the game is innovation.

Innovate on, move forward and let everyone else follow in your foot steps.

My 2 cents and I look forward to seeing both projects move forward.

Jason Key

Posted by: Jason Key on February 3, 2003 12:19 PM

I just tried this out, and its great. I looked around for a long time, and tried Nik's solution, but I much prefer Musicman's (no offense nik). I found the wddx solution to be a kludge and a little slower. I still dont understand why MM didn't include support for PHP or atleast acknowledge it from the beginning. Hopefully this will be a consideration in the next release and we wont have to keep "hacking" it to make it work.

Kudos though to Nik and musicman...

Posted by: Ryan Sarver on February 5, 2003 10:11 PM

Macromedia is actually quite happy about this. I've seen posts from some of the MM Remoting Developers in various corners and blogs stating that they are glad that people are showing interest. It also gives more reason for people to buy Flash, you see ;).

Although I think that amfphp would be better off as a C extension to the PHP language.... :-) Perhaps I'll do some work on that.

I also have to disagree about Macromedia "staying ahead and covering tracks..." -- they've been quite open with releasing the white papers to the SWF format; releasing the source of their player and other various products of theirs; providing (limited) support for the source and in general, being a good software publisher. I'm not working for MM or anything; I just don't think that MM needs to be portrayed as a Mini-MS.

Devon O'Dell

Posted by: Devon O'Dell on April 16, 2003 03:34 PM

PHP/Flash Remote Method Invocation solution.

Posted by: Michael Paul on January 23, 2004 12:32 AM

Gater PHP/RMI for Flash MX

Posted by: Michael Paul on January 23, 2004 12:36 AM

I make ynamic sits using flash and php and I've described how I use flash and php to bring mysql result set as it is in flash without binary transfer here


Posted by: robin on October 20, 2004 06:18 AM
Post a comment

Email Address:



Remember info?

Thank you!

Most Visited Entries
Sketches, Works & Source Code
In Love with
Powered by
Movable Type 2.661

© Copyright Mario Klingemann

Syndicate this site:
RSS 1.0 - RSS 2.0

Quasimondo @ flickr
Quasimondo @ LinkedIn
Quasimondo @ Twitter
Quasimondo @ Facebook
Quasimondo @ MySpace
Quasimondo is a Bright
Citizen of the TRansnational Republic
My other blog in german

My family name is written Klingemann,
not Klingelmann, Klingeman, Klingaman, Kingemann,
Kindermann, Killingaman, Klingman, Klingmann, Klingonman
Klingemman, Cleangerman, Klingerman or Kleangerman

profile for Quasimondo at Stack Overflow, Q&A for professional and enthusiast programmers