\n"; $Dir = "."; $DirEntries = scandir($Dir); foreach ($DirEntries as $Entry) { echo $Entry . "
\n"; } echo "
"; echo "Descending Order is activated by putting a one (1) in the second parameter of the scandir function." . "
\n"; $Dir = "."; $DirEntries = scandir($Dir,1); foreach ($DirEntries as $Entry) { echo $Entry . "
\n"; } ?>