Hello, I've added a php file in modules folder and I get this message when I try to use it
Unexpected error: Wrong formatted data from BGA gameserver 1 (method: createGame): JSON_ERROR_SYNTAX
Warning: require_once(/var/www/tournoi/include/DTGamePreparation.inc.php): failed to open stream: No such file or directory in /var/tournoi/release/tournoi-201105-1746-gs/www/index.php on line 101
Fatal error: require_once(): Failed opening required '/var/www/tournoi/include/DTGamePreparation.inc.php' (include_path='.:/usr/share/php') in /var/tournoi/release/tournoi-201105-1746-gs/www/index.php on line 101
this is the beginning of the main php file
and when i add this :
I get the error message
can you help me ?
Unexpected error: Wrong formatted data from BGA gameserver 1 (method: createGame): JSON_ERROR_SYNTAX
Warning: require_once(/var/www/tournoi/include/DTGamePreparation.inc.php): failed to open stream: No such file or directory in /var/tournoi/release/tournoi-201105-1746-gs/www/index.php on line 101
Fatal error: require_once(): Failed opening required '/var/www/tournoi/include/DTGamePreparation.inc.php' (include_path='.:/usr/share/php') in /var/tournoi/release/tournoi-201105-1746-gs/www/index.php on line 101
this is the beginning of the main php file
Code: Select all
require_once( APP_GAMEMODULE_PATH.'module/table/table.game.php' );
include('modules/DTGamePreparation.php');
Code: Select all
function stGamePreparation()
{
$gamePreparation = new DTGamePreparation($this);
$this->gamestate->nextState( 'goforit' );
}
can you help me ?