I'm gonna go out on a limb here and try this:
(note: i'm not gonna test this code, i'm just throwing it out, play with it.)
Name your files (example: 1.jpg, 2.jpg --> 14.jpg)
then <?php echo "<img src=$imgcount.jpg>"; ?>
Now the problem lies in making the page refresh, the code i gave will make it change the file name every 15seconds ish, but it won't refresh the image display.
You'll need javascript for that. Read up on some ajax i guess.
Ok, so i probably didn't help much, but hey, i gave it a shot.