look in the manual under directory functions--
<?php
$handle=opendir('.');
while (false!==($file = readdir($handle))) {
if ($file != "." && $file != "..") {
echo "$file\n";
}
}
closedir($handle);
?>
This will list all files except . and ..
Hope this helps
Darren