My sites users have increased 10 fold in as many days I AM SCARED!
let me give you the run down:-
HOW DOES THIS SOUND.
setcookie for a month, if affliliate sends traffic write ip, affilliate id to cookie, if cookie acted on in 30 days. Call cookie value, write it to user login database so that affilliate can be paid if the user makes some money on the site.
get ip, get referrer ie $_SERVER variables.
code out bots and spiders, get real visitor values, make them distinct. take the users page views against the total page views of the site to structure an earning value for each user.
JEEZ I'm SO full of it...
in theory it was all so cool, now I terrified that I might do my users down because I an not an expert. can I upload bits of my code for u guys to pull-a-part and help me improve,,,,,... I HAVE NOT SLEPT IN 10 DAYS and I am BUSY OMG......