amfphp NetConnection.Call.BadVersion 解决方案

amfphp1.9 最新下载的

测试的时候 报 NetConnection.Call.BadVersion

百思不得其解

然后看到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();
}

以上的if语句全部注释掉就行了

导致的原因是 FLASH 编译是在本地编译的 不可以进行远程访问


posted @ 2011-03-10 09:54  as爱好者  阅读(679)  评论(0编辑  收藏  举报