Hi everybody,
I try to implement the AMF protocol for RPC under php (flash remoting), but I fall under some troubles.
if you do this :
<?php echo "hello"; ?>
and if you watch the packet sent with a packet sniffer you will see this :
http header...
30 20 20 0d 0a "h" "e" "l" "l" "o" 0d 0a 30 0d 0a 0d 0d 0a
and not just :
http header...
"h" "e" "l" "l" "o"
as expected.
These "noises" at the begining and the end of the http packet is a real problem for me, because the flash player which receive this packet doen't understand it (the data must begin with a null byte).
I know these "noises" doesn't appear when you output a binary file, but write the data I want to send to a temp file before sending it is not a good option I think.
Does anybody have a work around for this ?