Sure.
I found this one on the net - pretty basic.
$dirpath = './directory';
$dh = opendir($dirpath);
while (false !== ($file = readdir($dh)))
{ if (!is_dir("$dirpath/$file"))
{ $file_name_array[] = $file;
}
}
sort($file_name_array);
foreach($file_name_array as $filename)
{ echo "<a href=directory/$filename>$filename<br />\n</a>";
}
closedir($dh);
As for HTML and CSS - how does it know which class to use if I have not specified it in the above?