Login   Register  
PHP Classes

Class: Image Rotator

Icontem
elePHPant

  Classes of Harish Chauhan  >  Image Rotator  >  Download  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Image Rotator Support forum
Base name: imagerotator
Description: Pick random file from a directory to display
Version: -
Required PHP version: -
License: Freeware
 
  Author   Group folder image Groups   Detailed description  
  Applications   Files Files  

Author

Picture of Harish Chauhan
Name: Harish Chauhan <e-mail contact>
Published packages: 28 Browse this author's classes Browse this author's classes
Country: India India - PHP jobs in India
Home page: ???

Groups

Group folder image Files and Folders Listing, accessing and manipulating files and folders View top rated classes

Detailed description

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.

Applications that use this class

No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

Files

File Role Description
Plain text file imageRotator.inc.php Class Main Class
Plain text file image_rotator_test.php Example Example
Download all files: imagerotator.tar.gz imagerotator.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.