|
<(?)php
// geef random "$display" aantal links weer uit een text file genaamd "$file"
function random_links($file, $display) {
$filenaam = $file . '.txt';
$f = file($filenaam);
srand((double)microtime()*1000000);
for($c=0; $c<=$display; $c++) {
$i = rand(0,count($f)-1);
list ($url, $desc) = split("\|", $f[$i]); $desc = rtrim($desc);
echo '<a href="'.$url.'">'.$desc.'</a><br>';
}
} // einde functie: random_links
?>
<(?)php
random_links('http://??????', 25);
?>
__________________
<a href="http://www.sexmoney.com/?adsid=59343" target="_blank"><img src="http://www.sexpiraat.nl/sexmo.gif"></a>
|