views:

939

answers:

2

Hi,

At the moment it seems I've tried every trick in the book trying to get this to work. I need some way of encoding AMF requests and then decoding the responses. At this point I don't care what language it's in, as long as it's doable and free (as in to me), however I would prefer PHP.

I don't know what other information is needed, but I'm happy to supply more info - just comment this!

Thanks.

EDIT: It seems the version of AMFPHP I was using was broken. Using a different version that I extracted from somewhere worked.

+3  A: 

You can use amfphp for PHP side or from the zend framework or weborb for PHP who is also free

Patrick
how exactly? Every time i've tried to serialize my $amf object, with $serializer = new AMFSerializer(); $result = $serializer->serialize($amf); it doesn't come back with the correct response.
Adam M-W
I dont know too less information. What are you serializing, what are you expecting ?
Patrick
trying to serialize something so the end result is like: http://adammw.homeip.net:8888/amf/fvill.datfor example, if you $amf = new AMFObject(file_get_contents('http://adammw.homeip.net:8888/amf/fvill.dat')); $deserializer = new AMFDeserializer($amf->rawData); $deserializer->deserialize($amf); then try and serialize it again with $serializer = new AMFSerializer(); $result = $serializer->serialize($amf); the $result is different from the input, and not just different, but plain wrong.
Adam M-W
A: 

SabreAMF has a decoder. Check http://code.google.com/p/sabreamf/

Evert