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

rotating URL

Discussion in 'White Hat SEO' started by biginch, Jun 16, 2008.

  1. biginch

    biginch Regular Member

    Joined:
    Apr 14, 2008
    Messages:
    262
    Likes Received:
    101
    Is there a script or a way to set up a rotating url, like a co-op.

    For instance, if I were to set up my own campaign with ten people, how would I go about making sure the url is evenly distributed.

    Thanks
     
  2. BozoClown

    BozoClown Junior Member

    Joined:
    Jan 4, 2009
    Messages:
    150
    Likes Received:
    106
    You could simply use a php array with the links and randomize the element number.

    Code:
    <?php
       $coalition = array{"link1","link2",.....,"link10"};
       srand(time());
       echo $coalition[rand()%9];
    ?>
    
     
    Last edited by a moderator: Jun 17, 2008