bonjour tout le monde,
regardez ce code :
je trouve partout sur internet qu'un code comme ceci génère un warning
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 <!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Document sans titre</title> </head> <body> <h1>Salut !</h1> <?php echo "<h1>Salut !</h1>"; echo "Salut !"; header("Location: page.php"); ?> </body> </html>
mais ici ca ne m'a pas généré cette erreur et la redirection passe avec success.Warning: Cannot modify header information - headers already sent by (output started at xxxxxxx ...
j ai EasyPHP-5.3.5.0 .
y a t-il quelqu'un qui pourrait m'expliquer ca !
merci
Partager