Hi I have installed a free arcade script on this domain http://www.thrilledgaming.com When you click to play a game you get this error Warning: main(games//): failed to open stream: No such file or directory in /mounted-storage/home8/sub002/sc15304-SFDM/www/playgame.php on line 49 Warning: main(games//): failed to open stream: No such file or directory in /mounted-storage/home8/sub002/sc15304-SFDM/www/playgame.php on line 49 Warning: main(games//): failed to open stream: No such file or directory in /mounted-storage/home8/sub002/sc15304-SFDM/www/playgame.php on line 49 Warning: main(): Failed opening 'games//' for inclusion (include_path='.:/usr/local/lib/php') in /mounted-storage/home8/sub002/sc15304-SFDM/www/playgame.php on line 49 Anyone point me in the direction to fix this please Bonzer
I would guess that you have a read/write problem on the 'games' folder on your server. Try setting write access for this folder and see what happens. Alternatively have a look at line 49 in playgame.php and see what it's actually doing, or post the code here so we can help you out. Thanks J
</tr><tr> <td colspan=\"2\">$game</td> </tr> <tr> <td>"; line 49 include("games/$l_game_folder/$game_file"); print"</td> <td valign=\"top\">"; include("ads1.php"); print"</td> </tr> <tr> <td colspan=\"2\"><div align=center>";?> <?=$footer?> PHP:
ahhh, ok, have a look at your error, it says 'games//' and the code in line 49 appears to populate to variables, $l_game_folder and $game_file. Given that the result is games// it appears as though these two variables are not being set. Looking only at the names of the variables (and making a BIG assumption) it looks like maybe the first variable is a config and the second is perhaps drawn from the database. Is the home page drawn dynamically from the db? If so then I can assume that the games are in the DB, and that the DB connection is actually working. Bizarre... Is this open source? If so, what's it called so I have better look at the bigger picture? J