vue erreur
Kommunauty
Connexion
Inscription

erreur


kiki9999 Messages : 85

bonjour voici mes erreur

Warning: Cannot modify header information - headers already sent by (output started at /data/filer-6/web/web272/htdocs/themes/huma_diab/theme.php:22) in /data/filer-6/web/web272/htdocs/modules/User/index.php on line 1644

Warning: Cannot modify header information - headers already sent by (output started at /data/filer-6/web/web272/htdocs/themes/huma_diab/theme.php:22) in /data/filer-6/web/web272/htdocs/modules/User/index.php on line 1645

Warning: Cannot modify header information - headers already sent by (output started at /data/filer-6/web/web272/htdocs/themes/huma_diab/theme.php:22) in /data/filer-6/web/web272/htdocs/modules/User/index.php on line 1646

Warning: Cannot modify header information - headers already sent by (output started at /data/filer-6/web/web272/htdocs/themes/huma_diab/theme.php:22) in /data/filer-6/web/web272/htdocs/modules/User/index.php on line 1647

Warning: Cannot modify header information - headers already sent by (output started at /data/filer-6/web/web272/htdocs/themes/huma_diab/theme.php:22) in /data/filer-6/web/web272/htdocs/modules/User/index.php on line 1648

Warning: Cannot modify header information - headers already sent by (output started at /data/filer-6/web/web272/htdocs/themes/huma_diab/theme.php:22) in /data/filer-6/web/web272/htdocs/modules/User/index.php on line 1652

et les ligne conserner

function logout(){
    global $nuked, $user, $cookie_theme, $cookie_langue, $cookie_session, $cookie_userid, $cookie_forum;

    $del = mysql_query("UPDATE " . SESSIONS_TABLE . " SET ip = '' WHERE user_id = '" . $user[0] . "'");

    setcookie($cookie_session, "");
    setcookie($cookie_userid, "");
    setcookie($cookie_theme, "");
    setcookie($cookie_langue, "");
    setcookie($cookie_forum, "");

    $_SESSION['admin'] = false;

    header("location:index.php");
}

merci

jeudi 12 avril 2012 (Dernière édition jeudi 12 avril 2012)

Aesma Messages : 109

Il me semble bien que tu ne peux pas utiliser la fonction "header()" de php, quand du code html à étais généré.

Si on se refaire à la documentation de php il en résulte ceci :


N'oubliez jamais que header() doit être appelé avant que le moindre contenu ne soit envoyé, soit par des lignes HTML habituelles dans le fichier, soit par des affichages PHP.
jeudi 12 avril 2012 (Dernière édition jeudi 12 avril 2012)

kiki9999 Messages : 85

a ok merci

jeudi 12 avril 2012

Répondre Pour répondre, tu dois d'abord t'inscrire rapidement sur Kommunauty. Rejoins-nous vite !