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

Edit on index.php 10-12-12 1:57:42
author Adnan Sinanovic <sinanovicha@gmail.com>
date Fri Oct 12 13:58:07 2012 +0000 (2012-10-12)
parents e06721d4f040
children
line source
1 <?php
3 $total = "15";
4 $folder = "/images/slideshow";
5 $start = "1";
6 $random = mt_rand($start, $total);
7 $name = $random . ".png";
9 echo "<img src=\"$folder/$name\" alt=\"SliTaz screenshot #$random\" />";
11 ?>