use the directory functions found in the manual.
here is one of the examples given (with minor modification):
<?php
if ($handle = opendir('.')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
echo "<a href=\"".$file."\">$file</a>\n";
}
}
closedir($handle);
}
?>