website view lib/random-image.php @ rev 967

pt: update index.php
author Claudinei Pereira <claudinei@slitaz.org>
date Sat Mar 17 02:09:19 2012 -0300 (2012-03-17)
parents 3b9816842566
children e06721d4f040
line source
1 <?php
3 $total = "8";
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 ?>