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

URL rotator script

Discussion in 'PHP & Perl' started by Website, Sep 16, 2010.

  1. Website

    Website Supreme Member

    Joined:
    Feb 8, 2008
    Messages:
    1,291
    Likes Received:
    286
    Location:
    whitehouse
    Is there a way to redirect a domain to one of a few URLs and specifiy the frequency of redirection? An example would be to have mydomain.com redirect to URL A 4/5 times and URL B 1/5 times?
     
  2. tacopalypse

    tacopalypse Executive VIP Jr. VIP Premium Member

    Joined:
    Nov 30, 2009
    Messages:
    980
    Likes Received:
    2,485
    Home Page:
    actually have a script that does exactly that :)

    try this out:

    PHP:
    <?php
    $a 
    = array(
    "http://www.urlA.com",
    "http://www.urlA.com",
    "http://www.urlA.com",
    "http://www.urlA.com",
    "http://www.urlB.com",
    );
    header('Location: ' $a[rand(0,count($a)-1)]);
    ?>
     
    • Thanks Thanks x 2
  3. wacked

    wacked Newbie

    Joined:
    Jul 17, 2010
    Messages:
    19
    Likes Received:
    2
    you canĀ“t be serious.
    something more serious would be "Sutra TDS" or "Simple TDS". Just google them.
    The second is free.
     
  4. Crazy

    Crazy Jr. Executive VIP

    Joined:
    Jun 13, 2009
    Messages:
    640
    Likes Received:
    319
    Occupation:
    VB, C#, XHTML, CSS, PHP, MySQL, JavaScript, jQuery
    Location:
    Everywhere
    To clarify... you have 2 domains pointing to one host (one index.php), and you'd like to redirect the domains to a specific array of URLs?
     
  5. thomansfel

    thomansfel Jr. VIP Jr. VIP

    Joined:
    Dec 11, 2009
    Messages:
    535
    Likes Received:
    162
    Occupation:
    working for myself
    Location:
    in a cave with WiFi
    codefu.net i have it already, i can set you up an acc
     
  6. DaChamp

    DaChamp Newbie

    Joined:
    Jun 22, 2010
    Messages:
    29
    Likes Received:
    3
    I need a CodeFu.net account but don't want to pay for it right now.
     
  7. mastphil

    mastphil Newbie

    Joined:
    Dec 13, 2007
    Messages:
    10
    Likes Received:
    0
    Can the script itself not be shared?
     
  8. thomansfel

    thomansfel Jr. VIP Jr. VIP

    Joined:
    Dec 11, 2009
    Messages:
    535
    Likes Received:
    162
    Occupation:
    working for myself
    Location:
    in a cave with WiFi
    no because it uses a license from them
     
  9. DaChamp

    DaChamp Newbie

    Joined:
    Jun 22, 2010
    Messages:
    29
    Likes Received:
    3
    PMed you thomansfel
     
  10. octars

    octars BANNED BANNED

    Joined:
    Aug 20, 2009
    Messages:
    301
    Likes Received:
    111
    Does anyone has homebizrotator dot com script? looks great...
     
  11. octars

    octars BANNED BANNED

    Joined:
    Aug 20, 2009
    Messages:
    301
    Likes Received:
    111
    Can you set me up an account please?
    Thanks
     
  12. DaChamp

    DaChamp Newbie

    Joined:
    Jun 22, 2010
    Messages:
    29
    Likes Received:
    3
    Wow, this guy is a prick.. He wants to sell people accounts for software that costs $70 total for $100 PER MONTH! For a ROTATING script.. such bad rep.. what a dick
     
  13. Hunwarrior

    Hunwarrior Jr. VIP Jr. VIP Premium Member

    Joined:
    May 12, 2010
    Messages:
    1,027
    Likes Received:
    859
  14. thomansfel

    thomansfel Jr. VIP Jr. VIP

    Joined:
    Dec 11, 2009
    Messages:
    535
    Likes Received:
    162
    Occupation:
    working for myself
    Location:
    in a cave with WiFi
    Yo @DaChamp - what kind of a champion are you ? Stupidity ?

    First of all my first post in this thread was aimed for the OP, I would have helped him with pleasure but he didn't replied, since then I got a few requests and I helped people out, those people are welcomed to post here; I didn't charged anyone

    Second, my good willing is limited, you sent me so many PM's and insisted about paying me for an account, which is against the rules by the way, I told you $100 to shut you up but you are a persistent kid

    At last but not least, are you calling me a dick ? Yes I am and I can smell your pussy, IDIOT

    Quote:
    Originally Posted by thomansfel
    hello, I already opened accs for a couple of other members, sorry but I can't help you

    Quote:
    Originally Posted by DaChamp
    Hey can I get an account on your script account? How much do you want for one?
     
  15. DaChamp

    DaChamp Newbie

    Joined:
    Jun 22, 2010
    Messages:
    29
    Likes Received:
    3
    Not even going to respond to these juvenille compliments. You went around a developer to try to make money (and were extremely greedy about it) and got caught and called out for it.
     
  16. thomansfel

    thomansfel Jr. VIP Jr. VIP

    Joined:
    Dec 11, 2009
    Messages:
    535
    Likes Received:
    162
    Occupation:
    working for myself
    Location:
    in a cave with WiFi
    "juvenille compliments" ? you called me a d**k first you moron

    Oh, I am greedy ? Can't you afford $75 to pay the original developer of the script codefu.net ? You got caught buying via PM, you dumb ass, not me

    What part of "I told you $100 to shut you up" don't you understand ? You sent me 5 PM's after I told you "hello, I already opened accs for a couple of other members, sorry but I can't help you"

    I offered my help to the OP because I knew they aren't selling the script anymore, you got it now, good for you and use your damn host, fu*k off, IDIOT
     
  17. DaChamp

    DaChamp Newbie

    Joined:
    Jun 22, 2010
    Messages:
    29
    Likes Received:
    3
    Exactly what I mean by juvenille. Trying to make money off of another coders script that was "no longer available" even though it is. How about you stop being such an asshole and realize that you were way out of line.

    Done with this convo.
     
  18. DamnTees

    DamnTees Junior Member

    Joined:
    Apr 1, 2010
    Messages:
    172
    Likes Received:
    24
    Occupation:
    Environmental Director
    Location:
    Sin City
    Home Page:
    Both of you are speaking off of hearsay in order to make legitimate claims and take sides one would have to see the trail of PM's that were exchanged between you two.
     
  19. homej40

    homej40 Newbie

    Joined:
    Apr 13, 2010
    Messages:
    4
    Likes Received:
    0
    if its for a tracking, I'd second prosper
    if its a quick script you are looking for, simply use the php rand function