Yes I did it I put PHP in the title of a blog post. I'm all about using whats best for the job at hand and if that means your using PHP then so be it. I'm currently re-writing a section of our app in both C# and Groovy just to keep my skills upto date but more of that in another post ;)
The topic of this post is to answer a comment to my Loading binary data in the Flash player client side post. Dave asked "How can I upload this to the server after modifying it if I'm not using ColdFusion? I don't understand what you're doing with the RemoteObject object."
Initially I though it would be easy as per my reply. And well it actually was just that easy. I needed a base64 encoding class and a simple PHP script to accept and base64 decode the data and write it to a file. Thanks to Thomas Stiegler who whipped up this quick script.
Here is a working demo with view source enabled: http://code.kukiel.net/blog/phpresize
You still need Flash 10 and it still only works on Windows but it will post to any server side language you have access to. I'll assume the same could be done over WebOrb for PHP, ( c# ect ) using amf or webservices.
6 comments: