|
$liste = array();
thumblist("/var/www/vhosts/web18.server11.configcenter.info/httpdocs/showit_judosportnet/random/links");// der reale Pfad zum Ordner
$max = sizeof($liste)-1;
$i = rand(0,$max);
include $liste[$i];
//echo " Bild #".$i." von ".$max." "; function thumblist($root) { global $liste; $handle = opendir($root); while ($file = readdir ($handle)) { if($file != "." && $file != "..") { if(is_dir($root."/".$file)) { thumblist($root."/".$file); } else { $liste[] = $root."/".$file; } } } closedir($handle); } ?> |
|
Copyright © Kurz Reinhold, Judosport.net, all rights reserved, 2000 -