Howdy
I have a script that lists files from a directory. What I want to do is spilt the result up so that files are displayed into a html table that is 8 colums wide and how ever many rows are needed.
To display the contents of the directory to the screen I use :
if(is_array($files)){
sort($files);
foreach($files as $file){
$ext = strtolower(end(explode('.', $file)));
if ($file =="Thumbs.db" || $ext == "gif" || $ext == "GIF") {
echo "";
} else {
echo "<a href=\"images/$file\" target=\"_blank\"><img src=thumb.php?$file></a><br />\n";
}
}
}
any idea's / hints would be very helpful
cheers
peter