|
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.
|