<html>

<body>
<?php

//scanning files in a given directory in ascending order
$myfiles = scandir(getcwd());

//displaying the files in the directory
foreach( $myfiles as $file ) {
	if ( is_dir($file) && $file != '.' && $file != '..') {
		echo '<a href="' . $file . '">' . $file . '</a><br>';
	}
}
?>

</body>
</html>