Location: PHPKode > scripts > Random Image Rotator > test.php
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<title>Random image script useage example</title>
<style type="text/css">
body, td, p, input {
        color : #000000;
        font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
        font-size : 12px;


<p><b>Random image script usage example</b><br />
For further information on how to use the Random Image PHP script see <a href="readme.htm">Readme file</a></p>


<p>Type 1, default images folder:<br />
<img src="randim.php?type=1"></p>

<p>Type 2, default images folder:<br />
<img src="<?php $_GET['type']=0; include 'randim.php'; ?>"></p>

<p>Type 1, folder <i>images2</i>:<br />
<img src="randim.php?type=1&folder=images2"></p>

<p>Type 2, folder <i>images2</i>:<br />
<img src="<?php $_GET['type']=0; $_GET['folder']='images2'; include 'randim.php'; ?>"></p>



<p><a href="http://www.phpjunkyard.com/random-image.php" target="_blank">Random image</a> script by <a href="http://www.phpjunkyard.com" target="_blank">PHPJunkyard</a>.</p>


Return current item: Random Image Rotator