Confused about DMR.

Discussion in 'CPA' started by Total Noob, Jun 30, 2009.

  1. Total Noob

    Total Noob Jr. Executive VIP Jr. VIP Premium Member

    Joined:
    May 10, 2009
    Messages:
    2,117
    Likes Received:
    1,998
    Location:
    Florida
    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