PHP Classes / Rotate Image

Display random images from a list in rotation

Rotate Image PHP Class

This class can be used to display random images in an HTML page from a list. The class gets the list of image files present in the given directory with a name that matches a pattern defined by a regular expression. The class then picks a random image to display and generates HTML tags to display that image. The generated HTML tags contain Javascript that makes the next image in the list be displayed when the user clicks on the current image.

Search in PHP Classes

Filter by tags