Batch URL Encoder?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • beanamid
    Confirmed User
    • Jan 2007
    • 382

    #1

    Batch URL Encoder?

    I need to encode a Ton of URLS for my trade script what's a good batch encoder???

    Thanks in advance
    Trade Links |Traffic With an Ok site with Good SE traffic
    ICQ: 457 534 187
  • bDok
    Confirmed User
    • Feb 2005
    • 1917

    #2
    write a quick perl script. probs would take a couple lines.
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Warriors come out to plaAAaayyy!
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

    Comment

    • Bro Media - BANNED FOR LIFE
      MOBILE PORN: IMOBILEPORN
      • Jan 2004
      • 16502

      #3
      make a form, and put a textarea into it, and name it "batchurl" then make encode.php and put this in it

      PHP Code:
      <?php
      if($_POST['batchurl'] == true)
      {
         $newline = explode("\n", $_POST['batchurl']);
         foreach($newline as $url)
         {
            echo urlencode($url) . "<br />\n";
         }
      }
      ?>
      make sure to make the form a POST not a GET and then just use the form to execute encode.php

      Comment

      • beanamid
        Confirmed User
        • Jan 2007
        • 382

        #4
        Originally posted by Jaysin
        make a form, and put a textarea into it, and name it "batchurl" then make encode.php and put this in it

        PHP Code:
        <?php
        if($_POST['batchurl'] == true)
        {
           $newline = explode("\n", $_POST['batchurl']);
           foreach($newline as $url)
           {
              echo urlencode($url) . "<br />\n";
           }
        }
        ?>
        make sure to make the form a POST not a GET and then just use the form to execute encode.php
        Thanks a million I owe you one!
        Trade Links |Traffic With an Ok site with Good SE traffic
        ICQ: 457 534 187

        Comment

        • Bro Media - BANNED FOR LIFE
          MOBILE PORN: IMOBILEPORN
          • Jan 2004
          • 16502

          #5
          Originally posted by beanamid
          Thanks a million I owe you one!
          no problem!

          Comment

          • beanamid
            Confirmed User
            • Jan 2007
            • 382

            #6
            I think I missed somthing..
            I make the form, and it looks like this:
            <body>
            <form action="/encode.php" method="post" enctype="application/x-www-form-urlencoded" name="batchurl"><textarea name="urls to encode" cols="50" rows="20" wrap="off"></textarea><input name="submit" type="submit" /></form>
            </body>

            I think I am missing somthing.....
            Trade Links |Traffic With an Ok site with Good SE traffic
            ICQ: 457 534 187

            Comment

            • beanamid
              Confirmed User
              • Jan 2007
              • 382

              #7
              never mind I had the name wrong thanks
              Trade Links |Traffic With an Ok site with Good SE traffic
              ICQ: 457 534 187

              Comment

              • Bro Media - BANNED FOR LIFE
                MOBILE PORN: IMOBILEPORN
                • Jan 2004
                • 16502

                #8
                Originally posted by beanamid
                never mind I had the name wrong thanks

                Comment

                • beanamid
                  Confirmed User
                  • Jan 2007
                  • 382

                  #9
                  last time I will bug you
                  could I add the lines:
                  /out.php?p=85&url=
                  to the php side
                  and even better would be to add the lines
                  <a href="/out.php?p=85&url=URLHERE" target="_blank"></a>
                  Trade Links |Traffic With an Ok site with Good SE traffic
                  ICQ: 457 534 187

                  Comment

                  • beanamid
                    Confirmed User
                    • Jan 2007
                    • 382

                    #10
                    jaysin thanks for the help and I did signup for profitx under your code (not that I am making much yet)
                    Trade Links |Traffic With an Ok site with Good SE traffic
                    ICQ: 457 534 187

                    Comment

                    • Bro Media - BANNED FOR LIFE
                      MOBILE PORN: IMOBILEPORN
                      • Jan 2004
                      • 16502

                      #11
                      Originally posted by beanamid
                      last time I will bug you
                      could I add the lines:
                      /out.php?p=85&url=
                      to the php side
                      and even better would be to add the lines
                      <a href="/out.php?p=85&url=URLHERE" target="_blank"></a>
                      you want the script to ouput that for each link?

                      Originally posted by beanamid
                      jaysin thanks for the help and I did signup for profitx under your code (not that I am making much yet)
                      no worries, its not my refcode, its actually $tandman's who bought my sig, but he'll appreciate it, thanks!

                      Comment

                      • beanamid
                        Confirmed User
                        • Jan 2007
                        • 382

                        #12
                        It would be great if I got this as the end result: (either in the source code or text)
                        <a href="/out.php?p=85&url=URLHERE" target="_blank"></a>


                        Thanks again
                        Trade Links |Traffic With an Ok site with Good SE traffic
                        ICQ: 457 534 187

                        Comment

                        • GrouchyAdmin
                          Now choke yourself!
                          • Apr 2006
                          • 12085

                          #13
                          Change your echo statement.

                          Code:
                          echo '<a href="/out.php?p=85&url=' . urlencode($url) . '" target="_blank"></a><br />' . "\n";

                          Comment

                          • beanamid
                            Confirmed User
                            • Jan 2007
                            • 382

                            #14
                            Originally posted by GrouchyAdmin
                            Change your echo statement.

                            Code:
                            echo '<a href="/out.php?p=85&url=' . urlencode($url) . '" target="_blank"></a><br />' . "\n";
                            Thanks for the help.....
                            Trade Links |Traffic With an Ok site with Good SE traffic
                            ICQ: 457 534 187

                            Comment

                            • Bro Media - BANNED FOR LIFE
                              MOBILE PORN: IMOBILEPORN
                              • Jan 2004
                              • 16502

                              #15
                              Originally posted by GrouchyAdmin
                              Change your echo statement.

                              Code:
                              echo '<a href="/out.php?p=85&url=' . urlencode($url) . '" target="_blank"></a><br />' . "\n";
                              there ya go, sorry i didn't reply, i went to bed

                              Comment

                              Working...