# Auto-Load a directory of files

**URL:** https://forum.kirupa.com/t/auto-load-a-directory-of-files/331415
**Category:** web dev
**Created:** [July 26, 2013, 4:17pm UTC](https://forum.kirupa.com/t/auto-load-a-directory-of-files/331415 "2013-07-26T16:17:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![SoupHead](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@SoupHead](https://forum.kirupa.com/u/SoupHead)
#### Post date: [July 26, 2013, 4:17pm UTC](https://forum.kirupa.com/t/auto-load-a-directory-of-files/331415/1 "2013-07-26T16:17:00Z")

</div>

I want to be able to have a webpage that I can simply tell to load all images from a directory and put them in img tags which CSS will format. Basically I want to load thumbnails and then have them link to the larger file sizes in another directory with the same name. I think I heard somebody talking once about doing it in php but frankly I have no clue how I should do this and haven’t used php much at all. Is there a simple function I just can’t seem to find that will enable me to do this? EDIT: I just want to make sure you know, I don’t need help with the CSS or html page. I just need a function name or some direction to go and look in to.
