How to list images in a directory: http://www.webinfopedia.com/php-list-images-in-a-directory.html

test