by jj1690
2 replies
Does anyone know of a good link rotator as I have been trying to get one for the past 2 weeks and haven't found one yet.
#good #link #rotator
  • Profile picture of the author Andyhenry
    depends what you're trying to do - I'm sure the last time I needed one I just googled it and found a small javascript snippet that did it.
    Signature

    nothing to see here.

    {{ DiscussionBoard.errors[7772565].message }}
  • Profile picture of the author vjboc
    Originally Posted by jj1690 View Post

    Does anyone know of a good link rotator as I have been trying to get one for the past 2 weeks and haven't found one yet.
    Make a file of what ever you want. Lets just say Fishing.php - Place this code in the file. Place url in code shown below and now when someone clicks your fishing.php link, it will rotate through each one per visitor.

    <?php
    $k = $_GET['sub'];
    $aff[] = 'Put url here';
    $aff[] = 'Put url here';
    $aff[] = 'Put url here';
    $aff[] = 'Put url here';
    $aff[] = 'Put url here';
    srand ((double) microtime() * 1000000);
    $random_number = rand(0,count($aff)-1);

    $lol = ($aff[$random_number]);
    $lal = $lol.$k;

    header("Location: $lal"); ?>
    {{ DiscussionBoard.errors[7772990].message }}

Trending Topics