Code Snippets Php

//list all files in current directory andplace
//ina select box
function listfiles()
{
echo '';
closedir($dir);
}
echo '
';
listfiles();
echo '
';
?>