[問題] AMFPHP套件問題
最近在自學怎麼讓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
→
07/21 13:21, , 1F
07/21 13:21, 1F
※ 編輯: s9160509 來自: 140.131.7.65 (07/21 16:54)
→
07/21 17:26, , 2F
07/21 17:26, 2F
推
07/21 20:57, , 3F
07/21 20:57, 3F
→
07/21 20:59, , 4F
07/21 20:59, 4F
→
07/21 21:00, , 5F
07/21 21:00, 5F
→
07/21 21:00, , 6F
07/21 21:00, 6F
討論串 (同標題文章)