View Single Post
Old 06-16-2005, 09:56 AM  
Dusen
Confirmed User
 
Join Date: Aug 2002
Location: East Coast.
Posts: 2,251
As an alternative to Smokey's Time based one (Which is a hot idea btw) I would suggest reading/writing out via PHP to a file an integer with what was last shown

so set up an array 0,1,2,3 with the addresses to rotate

echo "0" > file.txt

the script:
---------

read number from file,

if ($readnum!=count($array)-1) { $current=$readnumber+1; }
else { $current=0; }

echo $array[$current]
write $current to file

However this breaks down under heavy traffic performance wise but ensures even distribution. I didn't include all code cause I'm eating lunch.
__________________
Penis Pill Sponsor List and Reviews:
http://www.pillsponsors.com
Dusen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote