Home >Backend Development >PHP Tutorial > 求PHP关于AMF3的文件

求PHP关于AMF3的文件

WBOY
WBOYOriginal
2016-06-13 13:19:09986browse

求PHP关于AMF3的资料
如果用PHP生成AMF3格式

求资料,求DEMO,各种关于PHPAMF的求

------解决方案--------------------
不知道是不是你想要的.话说 AMF不是adobe的一种传输协议吗?

demo
http://sourceforge.net/projects/php-amf3/


部分找到的代码
var request=new URLRequest('http://localhost/test.php');
request.method = URLRequestMethod.POST;
var data = new URLVariables();
var bytes:ByteArray = new ByteArray();
bytes.objectEncoding = ObjectEncoding.AMF3;
//write an object into the bytearray
bytes.writeObject( 
{ myString:"Hello World"} 
);
data.data = bytes;
request.data = data;

var urlLoader:URLLoader = new URLLoader();
urlLoader.dataFormat = URLLoaderDataFormat.BINARY;
urlLoader.addEventListener(Event.COMPLETE, onCompleteHandler);
urlLoader.load(request);

function onCompleteHandler(evt:Event):void {
trace(evt.target.data);
}

define("AMF_AMF3",1); 
$data = $_POST['data'];
echo amf_decode($data, AMF_AMF3);
------解决方案--------------------
http://www.baidu.com/s?wd=AMFPHP&pn=20
http://sourceforge.net/projects/amfphp/

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn