I have one directory called images/tips.
Now in that directory I have many images which can change.
I want the PHP script to read the directory, to find the
'; } ?>
Look at this code, use it definitely if useful for you. It loads all files from folder and prints them in above format. I made this code to use with lightbox.