PHP Classes

File: image_rotator_test.php

Recommend this page to a friend!
  Classes of Harish Chauhan   Image Rotator   image_rotator_test.php   Download  
File: image_rotator_test.php
Role: Example script
Content type: text/plain
Description: Example
Class: Image Rotator
Pick random file from a directory to display
Author: By
Last change:
Date: 18 years ago
Size: 272 bytes


Class file image Download
$rot=new ImageRotator("images");

$rot=new ImageRotator;
///Functiuon ImageRotator::getRandomImage() will get the image file name randomly.
<img src='<?=$rot->getRandomImage();?>'>