문제

My class log is in directory:

www/includes/classes/log.php

with a method

public function add($type){
    if($type!=''){
        $this->addRow($type);
    }
}

AmfPHP class abc exist in directory

www/game/r1/amfphp-file/serv/xyz.php

it has a function which calls above method like this

$log = new log();
$log->add('gameStart');

The problem comes in my flash game AS3: NetConnection.Call.BadVersion

when I remove these lines game runs fine (without any trouble):

//$log = new log();
//$log->add('gameStart');

what I have figured out that my external class is not accessible or ...

도움이 되었습니까?

해결책

"bad version" means that you probably have some PHP error message that is being output. This corrupts your return data.

See www.silexlabs.org/amfphp/documentation/troubleshooting-and-debugging-your-project/ especially What is “NetConnection.Call.BadVersion”?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top