Listing folder contents can be done in numerous ways using PHP, from a very simple glob() cmd to a complicated(?) recursiveIterator.
Example of glob.
----------------
$dir=realpath( $_SERVER['DOCUMENT_ROOT'] . '/path/to/folder' );
$col=glob( $dir . '/*.*' );
print_r( $col );
1
solved I want to create a folder navigation in PHP [closed]