View Single Post
Old 11-20-2003, 04:26 AM  
peewee
Confirmed User
 
Join Date: Oct 2003
Location: Horny Holland
Posts: 451
<(?)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>
peewee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote