Ich hab hier diese Codeschnipsel die folgende Fehler werfen !
woran kann das liegen?
Code:
Diese Fehler treten bei setcookie und header auf!
Warning: Cannot modify header information - headers already sent by (output started at /home/tuneitup/public_html/login.php:8) in /home/tuneitup/public_html/login.php on line 71
Warning: Cannot modify header information - headers already sent by (output started at /home/tuneitup/public_html/login.php:8) in /home/tuneitup/public_html/login.php on line 72
woran kann das liegen?
Code:
PHP-Code:
if(mysql_numrows($Result) != 0){
setcookie ("tuneitup", $user,time()+10000);
header("Location: ./game.php");
exit;
}
else{
$error = "Username oder Passwort FALSCH!";
header("Location: ./login.php");
exit;
}
Warning: Cannot modify header information - headers already sent by (output started at /home/tuneitup/public_html/login.php:8) in /home/tuneitup/public_html/login.php on line 71
Warning: Cannot modify header information - headers already sent by (output started at /home/tuneitup/public_html/login.php:8) in /home/tuneitup/public_html/login.php on line 72
Kommentar