
les tutomakers

voila
j'ai lu un tutoriel sur le sdz :
http://www.siteduzero.com/tuto-3-9689-1 ... #ss_part_6
mais voila
j'arrive bien a affichie l'avatar
fait affiche l'image (sous mozilla) tu vera que c'est pas la meme image (essaye plusieur fois vu que c'est au hasard

mais celle ci ne s'affiche pas au hasard
j'ai pas mis pourtant ça :
test2.php
- Code: Tout sélectionner
<!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>avatar</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<?php
$liste = array("avatar1.png", "avatar2.gif", "Avatar3.png");
$hasard = mt_rand(0, 2);
header("location: ".$liste[$hasard]);
?>
</body>
</html>
et .htaccess
- Code: Tout sélectionner
RewriteEngine on
RewriteRule ^avatar2.gif$ test2.php [L]
RewriteRule ^avatar1.png$ test2.php [L]
RewriteRule ^Avatar3.png$ test2.php [L]
Pourquoi sur les forum ça s'affiche pas au hasard

merci de votre aide
