I use a PHP include when I want a list of random links
My random.php is
Code:
<?php
$codes=array(
array('http://www.paysite.com?with&tracking&id','http://www.paysite.com/','PaySite Name'),
array('http://www.paysite2.com?with&tracking&id','http://www.paysite2.com/','PaySite2 Name'),
array('http://www.paysite3.com?with&tracking&id','http://www.paysite3.com/','PaySite3 Name'),
);
shuffle($codes);
$i=0;
if(!isset($number))
$number=5;
while(list(,$code)=each($codes)){
if($i>=$number){break;}
echo '<a href="'.$code[0].'" title="'.$code[2].'" onmouseover="window.status=\''.$code[1].'\';return true" onmouseoout="window.status=\'\';return true">'.$code[2]."</a><br />\n";
$i++;
}
?>
The actual scripts I use have 80+ links in them.
I have different scripts for different niches. (rand-amateur.php, rand-bbw.php, rand-fetish.php, etc)
Where-ever I want 5 random links I call
Code:
<?php
include('/home/path/to/random.php');
?>
If I want more than 5 links (to fill a column for example) I set the $number variable before the include()
Code:
<?php
$number=12;
include('/home/path/to/random.php');
?>
Just another person's take on a similar topic...