//list all files in current directory andplace//ina select boxfunction listfiles(){echo '';$dir = opendir("./");while($dirlist = readdir($dir)) { if ($dirlist[0] != "." && $dirlist[0] != ".." ) {echo "$dirlist";}}echo '';closedir($dir);} echo '';listfiles();echo '';?>