Code : Tout sélectionner
<html>
<body>
<?php
$fichiers=scandir('image');
foreach($fichiers as $x);
{
$data=file_get_contents($x,'./image');
sleep(10);
echo '<img src="<?php echo $data ?>" style="width:304px;height:228px">';
sleep(5);
}
?>
</body>
</html>Avertissement : file_get_contents (image2.txt): failed to open stream: Aucun fichier ou répertoire dans /home/fred92g/www/test.php sur la ligne 8