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

Looking for an Traffic Split Script ?!

Discussion in 'General Scripting Chat' started by raakil, Oct 30, 2013.

  1. raakil

    raakil Registered Member

    Joined:
    Jul 31, 2013
    Messages:
    83
    Likes Received:
    8
    I can't explain it very good because english isn't my native language, but I want to show u what I mean in an example.

    User1:
    Will get redirected to Download Link A
    User2:
    Will get redirected to Download Link B
    User3:
    Will get redirected to Download Link A

    And so on.....


    So that I can split my download links for testing.

    50% Of my Visitors will get redirected to Link A
    50% Of my Visitors will get redirected to Link B

    I hope you get it :]
     
  2. Schvamp

    Schvamp Power Member

    Joined:
    Feb 13, 2012
    Messages:
    684
    Likes Received:
    549
    Location:
    Hogwarts
    Change pageX.html to your download links.
    PHP:
    <?php
    $random 
    rand(1100);
    if(
    $random 50){ //If dice hits over 50 (out of 100)do this
    echo '<meta http-equiv="refresh" content="0; ,URL=page1.html">'
    }else{ //Otherwise, do this
    echo '<meta http-equiv="refresh" content="0; ,URL=page2.html">'
    }
    ?>
     
    Last edited: Oct 31, 2013
  3. iglow

    iglow Elite Member

    Joined:
    Feb 20, 2009
    Messages:
    2,081
    Likes Received:
    856
    Home Page:
    cpvlab has this options too and even more