Photogallery problem pls. help

i was currently working on a photogallery and i want it to read any pictures in a given location. without requiring the user to input the specific file name. how can i do it. Thanks alot