I want to make a Slider
taking into account the direction of the images I'm looking for. Does anyone know how I can do this?
<?php
$dir = opendir("img");
while ($file = readdir($dir)) {
if ($file != "." && $file != ".." && $file != "$NAMEFILE") {
$data[$file]='<div class="slider"> <img src="img/'.$file.'" alt="'.$file.'" width="90%" height="90%"/> </div>';
}}
rsort($data);
while(list($k,$v) = each($data)) { echo $v; }
clearstatcache();
?>