Problème warnig header
lolo64
-
lolo64 -
lolo64 -
Bonjour, j'ai un problème avec mon site internet. A effet quand je veux accéder à l'interface d'administrationune fois que j'ai mis les identifiants et valider j'ai ceci :
Warning: Cannot modify header information - headers already sent by (output started at /homepages/30/d290491802/htdocs/gratfruit/includes/config_site.php:2) in /homepages/30/d290491802/htdocs/gratfruit/mg-admin/header.php on line 11
Warning: Cannot modify header information - headers already sent by (output started at /homepages/30/d290491802/htdocs/gratfruit/includes/config_site.php:2) in /homepages/30/d290491802/htdocs/gratfruit/mg-admin/header.php on line 12
Warning: Cannot modify header information - headers already sent by (output started at /homepages/30/d290491802/htdocs/gratfruit/includes/config_site.php:2) in /homepages/30/d290491802/htdocs/gratfruit/mg-admin/header.php on line 13
Les lignes concerner sont celle ci :
setcookie("login",$CONFIG['login'],time()+$expire);
setcookie("pass",$CONFIG['pass'],time()+$expire);
header("Location: ./");
D'ou peut venir le problème. Merci
Warning: Cannot modify header information - headers already sent by (output started at /homepages/30/d290491802/htdocs/gratfruit/includes/config_site.php:2) in /homepages/30/d290491802/htdocs/gratfruit/mg-admin/header.php on line 11
Warning: Cannot modify header information - headers already sent by (output started at /homepages/30/d290491802/htdocs/gratfruit/includes/config_site.php:2) in /homepages/30/d290491802/htdocs/gratfruit/mg-admin/header.php on line 12
Warning: Cannot modify header information - headers already sent by (output started at /homepages/30/d290491802/htdocs/gratfruit/includes/config_site.php:2) in /homepages/30/d290491802/htdocs/gratfruit/mg-admin/header.php on line 13
Les lignes concerner sont celle ci :
setcookie("login",$CONFIG['login'],time()+$expire);
setcookie("pass",$CONFIG['pass'],time()+$expire);
header("Location: ./");
D'ou peut venir le problème. Merci
A voir également:
- Problème warnig header
- Bad pool header ✓ - Forum Windows
- Your browser sent a request that this server could not understand. size of a request header field exceeds server limit. ✓ - Forum Bureautique
- Bad request ... - Forum Réseaux sociaux
- Rgb header c'est quoi - Forum Carte-mère/mémoire
- 400 bad request request header or cookie too large ✓ - Forum Google Chrome
2 réponses
Merci de votre réponse : Il y a ceci juste avant :
<?php
define('PATH', '../', TRUE);
include(PATH.'includes/config.php');
include(PATH.'includes/config_site.php');
include(PATH.'includes/fonctions.php');
if (isset($_POST["login"]) and isset($_POST["mdp"]) and $_POST["login"]==$CONFIG['login'] and $_POST["mdp"]==$CONFIG['pass'])
{
$expire = 3600;
setcookie("login",$CONFIG['login'],time()+$expire);
setcookie("pass",$CONFIG['pass'],time()+$expire);
header("Location: ./");
}
<?php
define('PATH', '../', TRUE);
include(PATH.'includes/config.php');
include(PATH.'includes/config_site.php');
include(PATH.'includes/fonctions.php');
if (isset($_POST["login"]) and isset($_POST["mdp"]) and $_POST["login"]==$CONFIG['login'] and $_POST["mdp"]==$CONFIG['pass'])
{
$expire = 3600;
setcookie("login",$CONFIG['login'],time()+$expire);
setcookie("pass",$CONFIG['pass'],time()+$expire);
header("Location: ./");
}