PHP Classes

Image Rotator: Pick random file from a directory to display

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2005-01-24 (10 years ago) RSS 2.0 feedStarStarStarStar 63%Total: 1,135 All time: 3,077 This week: 1,398Up
Version License Categories  
imagerotator 1.0FreewareFiles and Folders
Description Author  

This class can pick a random file from a directory. Despite it can be used for displaying rotating banner images, it can be used to randomly pick an other type of file.

The class can traverse a given directory to retrieve all files of a given list of file name extensions. Then it can pick one file randomly to be returned as the selected file.

Optionally, the starting directory can be traversed recursively. This way the class can return files from sub-directories of the starting directory.

Picture of Harish Chauhan
Name: Harish Chauhan is available for providing paid consulting. Contact Harish Chauhan .
Classes: 28 packages by
Country: India India
Age: ???
All time rank: 32 in India India
Week rank: 9 Down1 in India India Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file Class Main Class
Accessible without login Plain text file image_rotator_test.php Example Example

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,135All time:3,077
 This week:0This week:1,398Up
User Ratings User Comments (2)  
 All time
I used this package and it worked just fine, great work!
11 months ago (Isak Mokgabudi)
5 years ago (kishore kumar)