1.乱码问题 如果你发现你的程序读取的数据是乱码,那么首先你试下发送到数据库里的数据是否是乱码,如果是则现在数据库里整理字符集,如果不是那就打开gateway.php,
将
$gateway->setCharsetHandler(“utf8_decode”, “ISO-8859-1″, “ISO-8859-1″)
修改为
$gateway->setCharsetHandler( “utf8_decode”, “UTF-8″, “UTF-8″);
最后在你写的PHP文件的读取方法里加入 mysql_query(“set names UTF8″);
这样就应该解决问题了。
2.如果你使用的是godaddy的空间,那么你会发现AMFPHP在godaddy上安装时会报错,怎么解决这个问题呢?删掉.htaccess就可以了,不知道国内用godaddy的人多不。
3.报错,我在使用Flash IDE时报了这样一个错误Error #2044: Unhandled NetStatusEvent:: level=error,
code=NetConnection.Call.BadVersion at Main()
应该是安全检测错误,找到gateway.php中的
//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();
将其注释掉就可以了。