 |
// Zufallsbild _ PHP-Sprueche von Uwe Bombel
$suche_erg="";
$fin = file ('http://www.ros-hartmann.ch/zufallsbilder/bilder.dat');
$anz = count ($fin);
while ($suche_erg<=" ") {
mt_srand((double)microtime()*1000000);
$zufallsz=mt_rand(1, $anz);
for ($i = 0; $i <= $anz-1; $i++) {
$suche = explode ("|", $fin[$i]);
if ($zufallsz==$suche[0]){print "$suche[1]\n"; $suche_erg="$suche[1]";}
}
}
?> |