View Single Post
Old 2006-01-12, 10:14 AM   #5
oast
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
 
oast's Avatar
 
Join Date: May 2004
Location: UK
Posts: 316
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...
__________________
Playboy Webmasters - The name says it all! $35 per signup or 60% revshare.
oast is offline   Reply With Quote