A little late but - Instead of using rand(0,4) for 5 websites, rand(0,2) for 3 websites etc. you can use the sizeof() or count() functions to get the size of the arrays. They return the actual number so you would have to subtract 1 so change rand(0,n) to rand(0,sizeof($aff_array)-1)
That...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.