作者s9160509 (JIM)
看板Flash
標題[問題] AMFPHP套件問題
時間Thu Jul 21 11:40:21 2011
最近在自學怎麼讓FLASH連結資料庫
看了版上有推薦 【資料庫應用即戰力】
就去借來研究
下載 AMFPHP1.9
然後就照著書本上操作
輸入網址可以看到AMFPHP偵錯器畫面
但是在 【設定GATEWAY位置】 的步驟時
按下SAVE
就會跑出以下:
(mx.rpc::Fault)#0
errorID = 0
faultCode = "Client.Error.MessageSend"
faultDetail = "Channel.Connect.Failed error NetConnection.Call.BadVersion: "
faultString = "Send failed"
message = "faultCode:Client.Error.MessageSend faultString:'Send failed' faultDetail:'Channel.Connect.Failed error NetConnection.Call.BadVersion: '"
name = "Error"
rootCause = (Object)#1
code = "NetConnection.Call.BadVersion"
description = ""
details = ""
level = "error"
書上也沒有提供除錯方法
不知道有沒有人也遇過此問題然後解決了??
幫我解惑><
謝謝各位
--
剛剛我把gateway.php用瀏覽器開啟來
發生了:
Fatal error: Uncaught exception 'VerboseException' with message
'Non-static method CharsetHandler::setMethod() should not be called statically,
assuming $this from incompatible context'
in C:\AppServ\www\amfphp\core\amf\app\Gateway.php:134 Stack trace:
#0 C:\AppServ\www\amfphp\core\amf\app\Gateway.php(134):
amfErrorHandler(2048, 'Non-static meth...',
'C:\AppServ\www\...', 134, Array)
#1 C:\AppServ\www\amfphp\gateway.php(154): Gateway->service()
#2 {main} thrown in
C:\AppServ\www\amfphp\core\amf\app\Gateway.php on line 134
是否跟這有關係?
還有我查了網路上
也照著設定
【
設定 amfphp
開啟 amfphp/gateway.php
找到
$gateway->setCharsetHandler("utf8_decode", "ISO-8859-1", "ISO-8859-1");
改成 $gateway->setCharsetHandler("utf8_decode", "UTF-8", "UTF-8");
(使 amfphp 支援中文的方式)
找到 $gateway->disableStandalonePlayer();
改成 //$gateway->disableStandalonePlayer();
(可避免以下錯誤:Error #2044: Unhandled NetStatusEvent: level=error,
code=NetConnection.Call.BadVersion)
】
可是還是一樣顯示原本的錯誤>_<
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.131.7.65
※ 編輯: s9160509 來自: 140.131.7.65 (07/21 16:54)
→ aquarianboy:可以試著繼續把錯誤訊息往google丟 07/21 17:26
推 MagicYan:在下遇過同樣的問題,印象中是新版的amfphp有個gateway裡 07/21 20:57
→ MagicYan:的設定,不能讓獨立的flashplayer連接,只能掛在瀏覽器 07/21 20:59
→ MagicYan:才可連接 $gateway->disableStandalonePlayer(); 07/21 21:00
→ MagicYan:↑↑↑↑↑↑ try了好久的經驗 07/21 21:00