Code : Tout sélectionner
<?php
session_start
?>
<!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" >
<head>
<title>Site de test HTML et langage PHP !</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" media="screen" type="text/css" title="Interface" href="css/style.css"/>
</head>
<body>
<div id="global">Code : Tout sélectionner
<br />
<b>Warning</b>: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /mnt/154/sda/2/c/xavier.bkh/index.php:1) in <b>/mnt/154/sda/2/c/xavier.bkh/index.php</b> on line <b>2</b><br />
<br />
<b>Warning</b>: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /mnt/154/sda/2/c/xavier.bkh/index.php:1) in <b>/mnt/154/sda/2/c/xavier.bkh/index.php</b> on line <b>2</b><br />
<!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" >
<head>
<title>Site de test HTML et langage PHP !</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" media="screen" type="text/css" title="Interface" href="css/style.css"/>
</head>
<body>
<div id="global">
<div id="tete"><img src="http://xavier.bkh.free.fr/images/tete.gif" width="976" height="104" alt="entete" /></div> <div id="corps">
<div id="col1">ces caractères bizarre étaient affiché sur le site avant que je mette le code php suivant :
Code : Tout sélectionner
<?php session_start(); ?>j'aimerais savoir pourquoi mon code change comme ca après qu'il soit interpreté par le navigateur ??
Merci amicalement !!