Read the content from a directory
<?php $dir = opendir("./"); while ($read_file = readdir($dir)) { echo "$read_file", "\n"; } closedir($dir); ?>