Search code examples
phpflashamfamfphp

cannot decode AMF encode messages from flash PHP


I am receiving encoded data from flash in AMF format, but I want to decode it in php .

I do not know how can I use the library https://github.com/silexlabs/amfphp-2.0/blob/master/Amfphp/Core/Amf/Serializer.php

I cant find a sample code that instructs how to do a simple decode of AMF encoded message


Solution

  • I would advise against using Zend_Amf, it was written with some mysterious misconception in mind, which they consider to be the "architecture"... AMFPHP still exists and is maintained by some folks who didn't like Zend that much http://sourceforge.net/projects/amfphp/

    Here is their site with examples and explanation on how to set it up etc: http://www.silexlabs.org/amfphp/