randomizing urls in a text file.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fucksakes
    Shit... Fuck! What the Hell?
    • Dec 2003
    • 7567

    #1

    randomizing urls in a text file.

    I am looking for a small free script that can randomizes urls in a .txt file, I found something that puts them in order and its a very useful little program.
  • sonofsam
    Too lazy to set a custom title
    • Dec 2004
    • 18643

    #2
    stop the black on black crime fucksakes
    I like turtles.

    Comment

    • Fucksakes
      Shit... Fuck! What the Hell?
      • Dec 2003
      • 7567

      #3
      Originally posted by sonofsam
      stop the black on black crime fucksakes

      Comment

      • NoHassleSteve
        Confirmed User
        • Jul 2004
        • 450

        #4
        Originally posted by Fucksakes
        I am looking for a small free script that can randomizes urls in a .txt file, I found something that puts them in order and its a very useful little program.
        I think some kind of "Message of the Day" script is a direction to look in.
        Tai Lynn - Asian model with 50% revshare
        Teen Dolls with Alyssa Doll -- 60% payouts Spunkbucks PPS and Revshare
        NS Cash -- sites with pornstars and fresh faces -- 60% payouts

        Comment

        • sinnerscorner
          Confirmed User
          • Jul 2004
          • 194

          #5
          Or you can try Randex at http://www.teca-scripts.com/free/
          -- ok there is no sig here --

          Comment

          • mortenb
            Confirmed User
            • Jul 2004
            • 2203

            #6
            something like:

            PHP Code:
            <?php
            $urls = file("file.txt");
            shuffle($urls);
            for($i=0;$i<count($urls);$i++) {
               echo $urls[$i];
            }
            ?>

            Comment

            • fris
              Too lazy to set a custom title
              • Aug 2002
              • 55685

              #7
              $file = "urls.txt";
              $fp = file($file);
              srand((double)microtime()*1000000);
              $urls = $fp[array_rand($fp)];
              echo $urls;

              will work much better

              in the file you will have to put <a href="http://www.url.com">site</a><br>

              or

              $file = "urls.txt";
              $fp = file($file);
              srand((double)microtime()*1000000);
              $urls = $fp[array_rand($fp)];
              echo "<a href='$urls'>random site</a>\n";

              hope that helps
              Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

              Comment

              • uno
                RIP Dodger. BEST.CAT.EVER
                • Dec 2002
                • 18450

                #8
                PHP Code:
                <? $links = file('textfile.txt'); srand ((float)microtime()*1000000); shuffle($links);?><?=$links[0];?>
                This has always worked fine for me.
                -uno
                icq: 111-914
                CrazyBabe.com - porn art
                MojoHost - For all your hosting needs, present and future. Tell them I sent ya!

                Comment

                • uno
                  RIP Dodger. BEST.CAT.EVER
                  • Dec 2002
                  • 18450

                  #9
                  that hahaha91; should be [0
                  -uno
                  icq: 111-914
                  CrazyBabe.com - porn art
                  MojoHost - For all your hosting needs, present and future. Tell them I sent ya!

                  Comment

                  • Fucksakes
                    Shit... Fuck! What the Hell?
                    • Dec 2003
                    • 7567

                    #10
                    let me explain the purpose I need this...

                    I will throw all my hosted galleries into 1 txt file and want to randomize the list and grab the top "50ish" links, list them on my site and delete them from the list, when I grab new hosted galleries I can just add them into the list and they will get added randomly.

                    is it possible to display the whole list of urls all mixed up, otherwise how will i know which ones been listed.

                    thanks for the help guys.

                    Comment

                    • studiocritic
                      Confirmed User
                      • Jun 2005
                      • 2442

                      #11
                      hit me up on icq.
                      254342256

                      Comment

                      • woj
                        <&(©¿©)&>
                        • Jul 2002
                        • 47882

                        #12
                        sounsd like you need something custom
                        icq: 33375924 if you need a hand with it
                        Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
                        Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
                        Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

                        Comment

                        Working...