Voila j'ai fait un système d'authentification qui marche très bien en local
mais dès que je le pass sur mon hébergeur j'ai plein d'erreurs du genre
:
Cannot modify header information - headers already sent by


Voici le code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
//CSS
//rouge_font
$RougeFontDébut = "<p><span style='background-color: rgb(255, 0, 0);'><span style='color: rgb(0, 0, 0);'>";
$FIN = "</span><br /></span></p>";
if ($_POST['Autentification'] === 'Valider'){
 
echo "<fieldset>
     <legend>Partie priver</legend>";
 
$autentifiaction = 0;
$var = 0 ;
include 'variable/var_serveur.php';
 
//connection au serveur
session_start();
$login1 = htmlentities($_POST['login']);
$mdp1 = md5(htmlentities($_POST['mdp']));
if(isset($_GET['logout']) and strlen($_GET['logout']) and is_numeric($_GET['logout']))
{
   $_SESSION['log'] = false ;
   header("location: site.php");
}
$sql = 'SELECT  login, mdp FROM session WHERE login = "'.mysql_escape_string($login1).'"AND mdp = "'.$mdp1.'"LIMIT 1' ;
$resultat = mysql_query($sql);
if(mysql_num_rows($resultat) == 0)
{
echo "$RougeFontDébut Le mdp ou login est faut veuiller poster vos problème sur ce forum [inscriver vous si vous ne l'êtes pas ]'$FIN <a href='http://tp74.net/forum/posting.php?mode=post&amp;f=24'>Cliquer ICI</a> . ";
echo "<META HTTP-EQUIV='Refresh' CONTENT='30; URL=site.php?'>";
}else $autentifiaction = 1;
 
if ($autentifiaction == 1)
 
{
//mise en place du nombre
mt_srand((float) microtime() * 100000);
$ValeurDuCookiDautentification = mt_rand(0,7000);
 
echo "ID suivent vous est attribué : [$ValeurDuCookiDautentification] <hr>";
 
$sql = "SELECT * FROM nombre";
$resultat = mysql_query($sql);
    while ($Nnombre = mysql_fetch_array($resultat))
 
    {
 
    	$IDnombre = $Nnombre['IDnombre'];
    	$nombre = $Nnombre['nombre'];
    	//vérification
    	if ($nombre != $ValeurDuCookiDautentification )$var = 1;else die("<h1><span class = 'nom'>ERRE SERVEUR</span></h1>
	<p><a href='site.php' target='_self'><strong>retour</strong></a></p>");
 
    }
if ($var = 1 )
 
{
$sql = "UPDATE nombre SET nombre = '".$ValeurDuCookiDautentification."'"."WHERE IDnombre = '1' ";
	mysql_query($sql);
if (mysql_query($sql) != false);else print "Echec</br>";
setcookie("cookieD","$ValeurDuCookiDautentification",time()+3600);
}
if ($C1 == 1)die("REDIRECTION DANS QUELQUE SEGONDE");else header("Location: autentification/console.php");
}
}
echo "</fieldset>"
?>
et voici tout les erreurs :

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home.10.15/spyovobl/soc/autentification/verification1.php:9) in /home.10.15/spyovobl/soc/autentification/verification1.php on line 16
ID suivent vous est attribué : [5000]
Warning: Cannot modify header information - headers already sent by (output started at /home.10.15/spyovobl/soc/autentification/verification1.php:9) in /home.10.15/spyovobl/soc/autentification/verification1.php on line 60

Warning: Cannot modify header information - headers already sent by (output started at /home.10.15/spyovobl/soc/autentification/verification1.php:9) in /home.10.15/spyovobl/soc/autentification/verification1.php on line 62
je me suis déjà renseigné sur internet, j'ai essayer de tout supprimer les message texte mais rien a faire

merci de votre aide