website view libs/random-image.php @ rev 861

de,id: Add an update box to call for contributions
author Christophe Lincoln <pankso@slitaz.org>
date Wed Jun 01 00:07:08 2011 +0200 (2011-06-01)
parents c2ce9d254863
children 3b9816842566
line source
1 <?php
3 $total = "6";
4 $folder = "images/slideshow";
5 $start = "1";
6 $random = mt_rand($start, $total);
7 $name = $random . ".png";
9 echo "<img src=\"$folder/$name\" alt=\"$name\" />";
11 ?>