Bonjour tout le monde
j'ai un soucis avec la fameuse erreurCela fait plusieurs jours que je galère à trouver une solution a cette erreur, il y a bien la solution avec la mise en cache ob_start() mais cela ne m’intéresse pas.Warning: Cannot modify header information - headers already sent by output started at C:\wamp\www\...\index.php:155) in C:\wamp\www\...\message.php on line 69
En gros j'ai une page index avec le doctype html en duret juste à la suite je commence mon php avec session et tout mets autres fichiers php
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 <!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" xml:lang="fr" lang="fr"> <head> <title>easy</title> <meta name="Description" content="''"> <meta name="Keywords" content="''">
Le soucis étant que j'ai un ficher message.php qui redirige si jamais un fichier php ne si trouve pas
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 <?php session_start(); include 'configs.php'; ecHo '<table width="999" border="0" align="center" cellpadding="0" cellspacing="0">'; ecHo '<tr><td width="985"><table width="100%" border="0" cellpadding="0" cellspacing="0">'; ............................
et le header() me renvoi l'erreur du dessus.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 switch ($button[1]) { case 1: include("test.php"); break; default: header("Location: index.php"); exit(); break; }
Partager