Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
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
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:07 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc