Warning: Cannot modify header information - headers already sent by
Bonjour,
Je viens de recevoir la fameuse notification :
Citation:
Warning: Cannot modify header information - headers already sent by (output started at .../index.php:1) in ...index.php on line 2
Voici le début de mon code :
Code:
1 2 3 4 5 6 7 8 9
| <?php
header('content-type: text/html; charset=utf-8');
include("bd/connexion.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head> |
Les autres page de mon site ne renvoient pas cette notification sachant qu'elles commencent toutes avec le même code !
Code:
1 2 3 4 5 6 7 8 9
| <?php
header('content-type: text/html; charset=utf-8');
$idpage = 4;
include("_header.php");
?>
<h1>Mon titre</h1>
<?php include("_footer.php"); ?> |
Une idée sur la source du problème ?
Merci