'; $r.=''; $dh=opendir($fpath); while (false!==($filename=readdir($dh))) { if ($filename!="."&&$filename!=".."&&!is_dir($fpath.$filename)) { $r.='