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 编译是在本地编译的 不可以进行远程访问

原文地址:https://www.cnblogs.com/bulolo/p/3651113.html