The other day I wrote a post about Rotating Offers for your Affiliate Marketing campaigns. I am a real newb about PHP and anything coded. I do have a buddy that is going to school right now learning this stuff so he helps me out a lot. The script that I posted, I can’t even remember where I got it.
Anyway, a fellow Nebraskan, DevTrench made a reply based off of my post. This is what blogging is all about, networking. He showed me in his post how you should be rotating so your stuff has more security. I am switching all of my rotating scripts to this one right now.
<?php
$offers = array('http://example.com/offer1.html',
'http://example.com/offer2.html',
);
header('Location:'.$offers[array_rand($offers)]);
?>
Thanks again to DevTrench for fixing my rotating script.
Related posts:





Wait what’s the difference between this one and the other one?
[Reply]
browie Reply:
November 23rd, 2008 at 1:35 pm
The first one I posted has some security issues. Some one could get into that file and hack it. DevTrench talks about it in his post. So I have switched. If you head over to IanFernando.com he has one that rotates based on EPC.
[Reply]
You seem to have done well in rotating your ads on the site
[Reply]