1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Confused about DMR.

Discussion in 'CPA' started by Jared255, Jun 30, 2009.

  1. Jared255

    Jared255 Jr. Executive VIP Jr. VIP Premium Member

    Joined:
    May 10, 2009
    Messages:
    1,907
    Likes Received:
    1,662
    Location:
    Boston, MA
    Hey guys, I'm new to CPA and I have all my offers set, but now I'm stumped on the DMR. I have a goto.php file that looks like this -

    Code:
       <?php
    echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.www.myserbsite.com/goto2.php\">";
    ?> 
    and then my goto2, which is

    Code:
       <?php
    $referer = $_SERVER['HTTP_REFERER'];
    if($referer == "")
        {
    echo "<meta http-equiv=\"refresh\" content=\"0;url=www.aff.com/myafflink=.php\">";    
        }
    else
        {
    echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.mywebsite.com\">";    
        }
    ?> 
    How do I get it so I send them to my website and they go to the affiliate blanked? Do I send them to www.mywebsite.com/goto.php?

    Thanks for any help,

    Jared