help needed urgently please

Discussion in 'PHP' started by bunny76, Feb 21, 2009.

  1. #1
    im getting this error

    Parse error: syntax error, unexpected '/' in /Toys/config.php on line 3

    here is the code can anyone spot anything wrong here?

    <?php



    / ProArcadeScript version: 1.1

    /

    / Template configuration

    /





    $cTpl = array(

    "nColumnsMain" => 2, // in the main list on the front page

    "nColumnsCat" => 2, // in the main list on a category page

    "nColumnsListCat" => 3, // in the list of all category's games

    "nMaxGameW" => 655,

    "nMaxGameH" => 655,

    "nStarSize" => 16 // width and height, on the game page

    );

    ?>
     
    bunny76, Feb 21, 2009 IP
  2. Seraskier

    Seraskier Peon

    Messages:
    53
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    um, use // instead of /

    // is the comment code
     
    Seraskier, Feb 21, 2009 IP
  3. shabbirprince

    shabbirprince Banned

    Messages:
    87
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Simply you can use below code:

    <?php

    /* ProArcadeScript version: 1.1
    Template configuration

    */

    $cTpl = array(

    "nColumnsMain" => 2, // in the main list on the front page

    "nColumnsCat" => 2, // in the main list on a category page

    "nColumnsListCat" => 3, // in the list of all category's games

    "nMaxGameW" => 655,

    "nMaxGameH" => 655,

    "nStarSize" => 16 // width and height, on the game page

    );

    ?>
     
    shabbirprince, Feb 21, 2009 IP
  4. ads2help

    ads2help Peon

    Messages:
    2,142
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    0
    #4
    The error message actually stated that the problem is at line 3.

    So, take a look at line 3 and you will see the / (single slash)

    You should comment using // ( two slashes )

    - ads2help
     
    ads2help, Feb 21, 2009 IP
  5. bunny76

    bunny76 Member

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #5
    thanks guys ill try this again now :)
     
    bunny76, Feb 22, 2009 IP