amfphp远程访问问题

问题描述:
最近在忙Dulux,在连接后台amfphp的时候,Flash返回如下错误:
Error #2044: 未处理的 NetStatusEvent:。 level=error, code=NetConnection.Call.BadVersion

问题分析:
肯定是后台有问题,可能不允许远程访问,查了下。

解决方法:
打开amf/gateway.php,找到代码:
if(PRODUCTION_SERVER)
{
    //Disable profiling, remote tracing, and service browser
    $gateway->disableDebug(); //注释掉               
    //Keep the Flash/Flex IDE player from connecting to the gateway. Used for security to stop remote connections.
    $gateway->disableStandalonePlayer(); //注释掉       
}
将这两句注释掉,重启服务。
大功告成,问题解决。

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注