Login   Register  
PHP Classes
elePHPant
Icontem

File: Test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Muhammad Ahmed Farid  >  Random Image  >  Test.php  >  Download  
File: Test.php
Role: Example script
Content type: text/plain
Description: Example to use this file
Class: Random Image
The class will select a random image from a folder
Author: By
Last change:
Date: 2005-03-20 21:58
Size: 456 bytes
 

Contents

Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Random Image Selector</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<?php
    
include 'RandomImage.class.php';
    
$rndImage = new RandomImage();
    
$imgDir="Images/";
    
$imageFile=$rndImage->getRandomImage($imgDir);
    print 
"<img src='$imageFile'>";
?>


</body>
</html>