How to Integrate a Double Meta Refresh with a Rotator Script?

2 replies
Hi All,

(Note: I've cross-posted this to the CPA section here on the Warrior forum.)

I just did a search to find instructions and the code for doing a double meta refresh. I found it along with a fairly clear explanation (finally!) on how to do a double meta refresh here:

Blank the Referrer with Double Meta Refresh - Web Design & SEO Company

However, I'm a little unclear on how to integrate it with a simple PHP script that rotates different offers automatically.

Here's an example of the rotator script I've used right on the landing page:

$counthandle=fopen("count.txt","r");
$getcurrent=fread($counthandle,filesize("count.txt "));
fclose($counthandle);
$getcurrent = trim($getcurrent);

switch($getcurrent){
case "1":
$link = "http://myaffiliatelink.com";
$offer = "Target $500 Gift Card -- CPA Empire (6757)";
$getcurrent = "2";
$offer_text = "Vote Now For a Chance To Win A Cool Gift<br><br>Enter your e-mail address on the next page to continue.";
break;
case "2":
$link = "http://myaffiliatelink.com";
$offer = "JC Penney $500 Gift Card -- CPA Empire (6762)";
$getcurrent = "3";
$offer_text = "Vote Now For a Chance To Win A Cool Gift<br><br>Enter your e-mail address on the next page to continue.";
break;
case "3":
$link = "http://myaffiliatelink.com";
$offer = "Sears $500 Gift Card -- CPA Empire (6764)";
$getcurrent = "1";
$offer_text = "Vote Now For a Chance To Win A Cool Gift<br><br>Enter your e-mail address on the next page to continue.";
break;
}

//update the file
$counthandle=fopen("count.txt","w");
fputs($counthandle,$getcurrent);
fclose($counthandle);


Can someone please tell me how to integrate the two?

Thanks so much!

Michelle
#double #integrate #meta #refresh #rotator #script
  • Profile picture of the author Intrepreneur
    May I ask why you need to blank the referrer?

    I suppose it's something like CJ and youcan only get paid if refeered from specified domain in your account?
    {{ DiscussionBoard.errors[750062].message }}
  • Profile picture of the author SteveJohnson
    Unless you're familiar with PHP coding, you'll need 6 new files, 2 for each aff address.

    For each offer, replace "http://myaffiliatelink.com" with the first refresh, i.e. "http://mysite.com/offer1file1.php", then in offer1file1.php, refresh to offer1file2.php, where you'll refresh to your affiliate link.

    Rinse and repeat for each offer.

    In the code example given on your reference site, the refresh sends the customer back to your site if the referrer is not empty - sacrificing a potential sale. Is this worth it?
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[750063].message }}

Trending Topics