Hi there,
Something like the following should do.
This script lists all the files in the specified directoty upon load, so the users will see the up-to-date version always (with an exception of cache). You can do a little more with directory related functions of PHP.
You can find a good resource here:
http://ca3.php.net/dir
Cheers.