$absolute_path = "/home/virtual/site85/fst/var/www/html/videos";
$dl = "http://mach3k.com";
$dir = opendir($absolute_path);
while($file = readdir($dir)) {
if (($file != "..") && ($file != ".") && ($substr($file,-4,4) != '.php')) {
$list .= "<a href='$dl/$file'>$file</a><br>";
}
}
echo "$list";
not hard to look up some string functions and piece together an IF check