title: List files on directory and build the html
body: <p>I'm making a page with some flash games, but, since in the past will be many games it will be very bored to add all those games one by one on the site. I know that using PHP we can get the list of the files in the directory and I know that, using this method, I can display all the games on the directory to the visitors page but, I was thinking if you can help me to add an image to each game that corespond with the name of the game. Ex:</p>
  
  <p>In "games" folder we will have games: play1.swf, play2.swf, play3.swf
  and, in "images" directory we will have images: play1.jpg, play2.jpg, play3.jpg.</p>
  
  <p>To display the list of the games, can we make a combination of jpg files with swf files? Play1.jpg will be the image of play1.swf game and, when a visitor clicks on the image, will be redirect to a page named ex: playgames.php?play1</p>