Script for linking out like this...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • beks001
    Confirmed User
    • Oct 2006
    • 1837

    #1

    Script for linking out like this...

    I am looking for a script that will allow me to rotate a text link. Example, domain.com/linkscript.php -> clicking out rotates to link1.com, link2.com, link3.com so on and so forth.

    Any suggestions? Bascially, I'm looking for a rotating link script.

    Either that or just some code that will rotate a multiple header redirect if that's even possible. I'm not a programmer...
    Last edited by beks001; 08-18-2012, 07:10 AM.
    [B]341 people reviewed this!?!?!

    Blogging Thread!


    Teen Cams


    Gay Webcam

    Best Free File Storage
  • freecartoonporn
    Confirmed User
    • Jan 2012
    • 7683

    #2
    PHP Code:
    <?php
    $arr = array("http://www.site1.com", "http://www.site2.com");
    header ("Location: " . $arr[array_rand($arr)]);
    Last edited by freecartoonporn; 08-18-2012, 07:18 AM. Reason: ref: http://stackoverflow.com/questions/8424987/how-to-create-a-random-header-location-in-php
    SSD Cloud Server, VPS Server, Simple Cloud Hosting | DigitalOcean

    Comment

    • brassmonkey
      Pay It Forward
      • Sep 2005
      • 77396

      #3
      maybe? http://www.ljscripts.com/freescripts/
      TRUMP 2026 KEKAW!!! - The Laken Riley Act Is Law!
      DACA ENDED - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.com

      Comment

      • beks001
        Confirmed User
        • Oct 2006
        • 1837

        #4
        Originally posted by freecartoonporn
        PHP Code:
        <?php
        $arr = array("http://www.site1.com", "http://www.site2.com");
        header ("Location: " . $arr[array_rand($arr)]);
        Awesome my friend. Thank you! Will this rotate them evenly or is this just going to be completely random you think?
        [B]341 people reviewed this!?!?!

        Blogging Thread!


        Teen Cams


        Gay Webcam

        Best Free File Storage

        Comment

        • grumpy
          Too lazy to set a custom title
          • Jan 2002
          • 9870

          #5
          Originally posted by beks001
          Awesome my friend. Thank you! Will this rotate them evenly or is this just going to be completely random you think?
          will go random.
          Don't let greediness blur your vision | You gotta let some shit slide
          icq - 441-456-888

          Comment

          Working...