I would recommend something like this:
<?php
if ($handle = opendir('/path/to/files')) {
$ignoredFiles = array('.', '..', '_notes', '@eaDir', 'index.html');
while (false !== ($entry = readdir($handle))) {
if(in_array(pathinfo($entry, PATHINFO_BASENAME), $ignoredFiles)) continue;
echo "<option value=\"LinkToFile " . pathinfo($entry, PATHINFO_BASENAME) . "\">" . pathinfo($entry, PATHINFO_FILENAME) . "</option>";
}
closedir($handle);
}
?>