[help]

Results 1 to 2 of 2
  1. #1
    Apprentice sharkonia is offline
    MemberRank
    Aug 2005 Join Date
    RomaniaLocation
    9Posts

    [help]

    Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\includes\vars.php:1) in C:\AppServ\www\login.php on line 28
    line 28-->31 setcookie($game_config['COOKIE_NAME'], $cookie, $expiretime, "/", "", 0)

    unset($dbsettings);
    header("Location:./frames.php");

    Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\includes\vars.php:1) in C:\AppServ\www\login.php on line 31
    l


    after i wanted to change price of colony ship and max

    601 => array ( 'max' => 20),
    602 => array ( 'max' => 20),
    603 => array ( 'max' => 10),
    604 => array ( 'max' => 10),
    605 => array ( 'max' => 3),
    606 => array ( 'max' => 3),
    607 => array ( 'max' => 2),
    608 => array ( 'max' => 2),
    609 => array ( 'max' => 1),
    610 => array ( 'max' => 5),
    611 => array ( 'max' => 10),
    612 => array ( 'max' => 1),
    613 => array ( 'max' => 3),
    614 => array ( 'max' => 1),
    615 => array ( 'max' => 1),

    so i cant log in anymore cuz i get that eror if i remake the server and dont change in vars.php nothing then it;s working fine can some help me to fix this bug or how to change some of prices

    and another eror what i get is when i want to register :
    Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\includes\vars.php:1) in C:\AppServ\www\includes\functions\CheckCookies.php on line 40
    this is line 40:setcookie ($game_config['COOKIE_NAME'], $NextCookie, $ExpireTime, "/", "", 0);
    $QryUpdateUser = "UPDATE {{table}} SET ";
    $QryUpdateUser .= "`onlinetime` = '". time() ."', ";
    $QryUpdateUser .= "`user_lastip` = '". $_SERVER['REMOTE_ADDR'] ."', ";
    $QryUpdateUser .= "`user_agent` = '". $_SERVER['HTTP_USER_AGENT'] ."' ";
    $QryUpdateUser .= "WHERE ";
    $QryUpdateUser .= "`id` = '". $TheCookie[0] ."' LIMIT 1;";
    doquery( $QryUpdateUser, 'users');


  2. #2
    Member darkoasis is offline
    MemberRank
    Dec 2008 Join Date
    94Posts

    Re: [help]

    when you save vars.php make sure it is not with UTF-8 encoding. use ANSI encoding instead and that should fix your error



Advertisement