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

url/page rotator needed

Discussion in 'PHP & Perl' started by frenchboy, Sep 3, 2008.

  1. frenchboy

    frenchboy Jr. VIP Jr. VIP Premium Member

    Joined:
    Aug 19, 2008
    Messages:
    657
    Likes Received:
    1,283
    I'm retarded and I've been looking for one on google and BHW for about an hour. I give up.

    What I'm looking to do is to send 50% of the traffic to one CPA ad and the other 50% to another ad. It would be cool if I could add more than 2 offers down the road.

    I don't want a banner rotator (or do I??). I want a page that redirects directly to the offers.

    I don't know much about coding so if any nice person could give me a script or some line of code that would work, ID BE HAPPY :)
     
  2. frenchboy

    frenchboy Jr. VIP Jr. VIP Premium Member

    Joined:
    Aug 19, 2008
    Messages:
    657
    Likes Received:
    1,283
    And what would "split1" and "split2" be?

    couldnt I just do this?

    <?php
    if(rand(0,1) == 0) {
    header("Location: myaffilaitelink.com");
    } else {
    header("Location: myaffiliatelink.com2");
    }
    ?>

    Or is it the same thing that you wrote?
     
  3. Chris Devon

    Chris Devon Jr. VIP Jr. VIP Premium Member

    Joined:
    Jul 2, 2008
    Messages:
    507
    Likes Received:
    192
    • Thanks Thanks x 2
  4. frenchboy

    frenchboy Jr. VIP Jr. VIP Premium Member

    Joined:
    Aug 19, 2008
    Messages:
    657
    Likes Received:
    1,283
  5. Chris Devon

    Chris Devon Jr. VIP Jr. VIP Premium Member

    Joined:
    Jul 2, 2008
    Messages:
    507
    Likes Received:
    192
    Yep, that is the one i put on mediafire
     
    • Thanks Thanks x 1
  6. sherly21

    sherly21 Junior Member

    Joined:
    Apr 14, 2008
    Messages:
    111
    Likes Received:
    2
    thats is what i looking for
    thanks
     
  7. bvb

    bvb Regular Member

    Joined:
    Aug 23, 2007
    Messages:
    244
    Likes Received:
    10
  8. da buck

    da buck Regular Member

    Joined:
    Feb 24, 2008
    Messages:
    317
    Likes Received:
    116
    Location:
    Ohio