Bets affiliate script?

Hi,
I couldn’t find anywhere else to post the thread so I thought to post it in here. I’m looking for an affiliate script. I want to setup an affiliate program for one of my websites. So everyone who refer me a client under their tracking ID will be paid few bucks. It must have tracking and detailed report.
Any script out there? Looking for a free and open source thing.
Mods: If the thread is in the wrong place so please move it to where it belongs.
Hope to get some positive answers, thanks in advance.
Regards,

See original post by fear