Wht have I got this error?

Discussion in 'PHP' started by bonzer, May 12, 2006.

  1. #1
    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
     
    bonzer, May 12, 2006 IP
  2. jaymcc

    jaymcc Peon

    Messages:
    139
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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
     
    jaymcc, May 12, 2006 IP
  3. Kunks

    Kunks Active Member

    Messages:
    1,064
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    78
    #3
    Write access has been set properly
     
    Kunks, May 12, 2006 IP
  4. Kunks

    Kunks Active Member

    Messages:
    1,064
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    78
    #4
     </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:
     
    Kunks, May 12, 2006 IP
  5. jaymcc

    jaymcc Peon

    Messages:
    139
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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
     
    jaymcc, May 12, 2006 IP
  6. Kunks

    Kunks Active Member

    Messages:
    1,064
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    78
    #6
    I bought the site from bonzer so dont have a clue
     
    Kunks, May 12, 2006 IP
  7. bonzer

    bonzer Well-Known Member

    Messages:
    1,451
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    185
    #7
    Hi First of all thanks for the Replys jaymcc
    I Am about to send you a PM
     
    bonzer, May 12, 2006 IP