its a random images script
use thanks button if u like it
Code:
$dir = "./images/"; //replace with image directory address $dh = opendir($dir); $a = array(); while ($filename = readdir($dh)) { $filename = $dir.$filename; if (getimagesize($filename)) { $a[]="$filename"; } } $rand = array_rand($a, 1); echo "<img src='$a[$rand]' style='max-width:100%;' />";