Game Section Community Forums

Full Version: Header Error!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Quote:Warning: Cannot modify header information - headers already sent by (output started at /home2/zenagogc/public_html/global.php:1) in /home2/zenagogc/public_html/inc/functions.php on line 1118

Thats what i get when playing a game. Yes the game works but its just that line keeps appearing above my header.
Quote: if(!empty($mybb->settings['cookiedomain']))
$cookie .= "; domain={$mybb->settings['cookiedomain']}";
if($httponly == true)
$cookie .= "; HttpOnly";
header($cookie, false);

* Unset a cookie set by MyBB.
* @param string The cookie identifier.
function my_unsetcookie($name)
global $mybb;
$expires = -3600;
my_setcookie($name, "", $expires);

The text in red is line 1118 in Functions.php
It's because you have a white space or something others before <?php
I am not sure what you mean...

Here is what i have at the first few lines of global.php

* MyBB 1.2
* Copyright
This is the whole global.php code

* MyBB 1.2
* Copyright ?
This one must to work
Quote:Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home2/zenagogc/public_html/global.php on line 13

Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ']' in /home2/zenagogc/public_html/global.php on line 35

Thats what i get now in index.php, my page doesn't show up other than that code >.<

PS: I don't know why but when i posted the full global.php code, it added extra \ everywhere >.< I've updated it now


Thanks, its fixed. Btw, sorry for the problem. I thought it would have been a bug because there are quite a few people who have the same problem over at
I think, that notepad of Windows make a whitespace ior something others above Wink