List files on directory and build the html
<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:
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.
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
Can someone help me on this? It will be a big help for my project.
Thank you very much and waiting for your reply! </p>
