| 
<?php
require("imageRotator.inc.php");
 $rot=new ImageRotator("images");
 
 /*
 OR
 $rot=new ImageRotator;
 $rot->setDirectory("images");
 */
 ///Functiuon ImageRotator::getRandomImage() will get the image file name randomly.
 ?>
 <img src='<?=$rot->getRandomImage();?>'>
 |