QUOTE
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /www/zzl.org/z/e/r/zeraw/htdocs/index.php:1) in /www/zzl.org/z/e/r/zeraw/htdocs/index.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /www/zzl.org/z/e/r/zeraw/htdocs/index.php:1) in
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /www/zzl.org/z/e/r/zeraw/htdocs/index.php:1) in
And I do not understand why...
Thank for your help, and excuse me for my english,
Pitouli
This is my page's code (index.php) :
CODE
<?php
session_start(); // On démarre la session avant toute chose
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Zeraw</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">
<?php
if (isset($_SESSION['membre_rang']) == FALSE)
{
?>
<p class="droite"><a href="index.php?page=identification"><img src="images/images_mise_en_page/zone_membre_connexion.png" alt="Connexion" title="Connexion" /></a></p>
<?php
}
else
{
?>
<p class="droite"><a href="partie_membre/destruction_session.php"><img src="images/images_mise_en_page/zone_membre_deconnexion.png" alt="Deconnexion" title="Deconnexion" /></a></p>
<?php
}
?>
<p class="header_hover"></p>
</div>
<div id="barre">
<p><a href="index.php?page=accueil">Accueil</a> - <a href="index.php?page=logiciels">Logiciels</a> -
<?php
if (isset($_SESSION['membre_rang']) == FALSE)
{
?>
<a href="index.php?page=inscription">Inscription</a>
<?php
}
else
{
?>
<a href="index.php?page=identification">Zone membre</a>
<?php
}
?>
</p>
</div>
<div id="corps">
<?php
if ($_GET['page'] == "accueil")
{
include("accueil.php");
}
elseif ($_GET['page'] == "identification")
{
include("identification.php");
}
elseif ($_GET['page'] == "logiciels")
{
include("logiciels.php");
}
elseif ($_GET['page'] == "inscription")
{
include("inscription.php");
}
elseif ($_GET['page'] == "acces_interdit")
{
include("partie_securite/acces_interdit.php");
}
else
{
include("accueil.php");
}
?>
</div>
<div id="footer">
<p> site optimisé pour un navigateur récent tel que firefox - <a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.0 Strict</a> - Design by Pitouli</p>
<p>Les logiciels sont la propriété de leurs auteurs respectifs</p>
</div>
</body>
</html>
session_start(); // On démarre la session avant toute chose
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Zeraw</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">
<?php
if (isset($_SESSION['membre_rang']) == FALSE)
{
?>
<p class="droite"><a href="index.php?page=identification"><img src="images/images_mise_en_page/zone_membre_connexion.png" alt="Connexion" title="Connexion" /></a></p>
<?php
}
else
{
?>
<p class="droite"><a href="partie_membre/destruction_session.php"><img src="images/images_mise_en_page/zone_membre_deconnexion.png" alt="Deconnexion" title="Deconnexion" /></a></p>
<?php
}
?>
<p class="header_hover"></p>
</div>
<div id="barre">
<p><a href="index.php?page=accueil">Accueil</a> - <a href="index.php?page=logiciels">Logiciels</a> -
<?php
if (isset($_SESSION['membre_rang']) == FALSE)
{
?>
<a href="index.php?page=inscription">Inscription</a>
<?php
}
else
{
?>
<a href="index.php?page=identification">Zone membre</a>
<?php
}
?>
</p>
</div>
<div id="corps">
<?php
if ($_GET['page'] == "accueil")
{
include("accueil.php");
}
elseif ($_GET['page'] == "identification")
{
include("identification.php");
}
elseif ($_GET['page'] == "logiciels")
{
include("logiciels.php");
}
elseif ($_GET['page'] == "inscription")
{
include("inscription.php");
}
elseif ($_GET['page'] == "acces_interdit")
{
include("partie_securite/acces_interdit.php");
}
else
{
include("accueil.php");
}
?>
</div>
<div id="footer">
<p> site optimisé pour un navigateur récent tel que firefox - <a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.0 Strict</a> - Design by Pitouli</p>
<p>Les logiciels sont la propriété de leurs auteurs respectifs</p>
</div>
</body>
</html>