PHP Coders. $30 PayPal first Person who posts...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Muff
    Confirmed User
    • Mar 2001
    • 1782

    #1

    PHP Coders. $30 PayPal first Person who posts...

    The code for an easy script.

    Details.

    I need a script that will build a list of character strings and have these variables.

    & = any letter a - z
    @ = any number 0 - 9

    So if I input &&& it would build a list that looks like.

    aaa
    aab
    aac
    aad
    ...
    ...
    zzz

    If I put @&& it would build a list that looks like.

    0aa
    0ab
    0ac
    ....
    ....
    9zz

    Also want to be able to add letters or numbers in combination with the variables. So if I put @89&& it would build a list that looks like.

    089aa
    089ab
    089ac
    .....
    .....
    989zz

    Doesn't need a fancy interface just tell me where I need to change inputs in the file and where to specify the output file and that's it.

    When you post leave your PayPal addy. As soon as I get it to work I'll send you payment. Feel free to bump
    Last edited by Muff; 02-18-2005, 09:50 PM.
  • labeledas
    Registered User
    • Oct 2002
    • 74

    #2
    you wan tot control how many you get in the list

    Comment

    • Muff
      Confirmed User
      • Mar 2001
      • 1782

      #3
      I should add. The first person who posts working code that does exactly what I need.

      Comment

      • Muff
        Confirmed User
        • Mar 2001
        • 1782

        #4
        Originally posted by labeledas
        you wan tot control how many you get in the list
        No. I want it all

        Comment

        • Muff
          Confirmed User
          • Mar 2001
          • 1782

          #5
          Bump!!!!

          Comment

          • Pete-KT
            Workin With The Devil
            • Oct 2004
            • 51532

            #6
            good luck on getting that for 30 I wouldnt waste my time doin that for 30 bucks sorry

            Comment

            • Slap Dot
              Confirmed User
              • Aug 2004
              • 3168

              #7
              Give me a minute

              » AIM: slapdotted
              » Skype: slapdot
              » ICQ: 190444

              Comment

              • brand0n
                been very busy
                • Nov 2002
                • 26983

                #8
                lotta code for 30 bucks

                bump it to 100
                want to buy this spot for cheap? it is of course for sale. long term deals are always the best bet. brand0n/ at/ a o l dot commies.

                Comment

                • Slap Dot
                  Confirmed User
                  • Aug 2004
                  • 3168

                  #9
                  PHP Code:
                  <? for($i=65;$i<91;$i++) { ?>
                          <a href="<?=$PHP_SELF?>?letter=<?=chr($i)?>"><?=chr($i)?></a>
                      <?    } ?>

                  » AIM: slapdotted
                  » Skype: slapdot
                  » ICQ: 190444

                  Comment

                  • Pete-KT
                    Workin With The Devil
                    • Oct 2004
                    • 51532

                    #10
                    my thoughts exactly

                    Comment

                    • Muff
                      Confirmed User
                      • Mar 2001
                      • 1782

                      #11
                      Originally posted by brand0n
                      lotta code for 30 bucks

                      bump it to 100

                      I keep hearing that. If it's alot of code how long would it take for someone to code it. In all honesty I figured someone would have had it posted by now.

                      Comment

                      • Serge Litehead
                        Confirmed User
                        • Dec 2002
                        • 5190

                        #12
                        if no one calls on this i could make it. will take about 1h.

                        and by "any" you mean random, right?

                        Comment

                        • Slap Dot
                          Confirmed User
                          • Aug 2004
                          • 3168

                          #13
                          I read your post wrong, I listed code for an easy A-Z index. Haha, sorry. I will add the correct code in a minute

                          » AIM: slapdotted
                          » Skype: slapdot
                          » ICQ: 190444

                          Comment

                          • Muff
                            Confirmed User
                            • Mar 2001
                            • 1782

                            #14
                            Originally posted by holograph
                            if no one calls on this i could make it. will take about 1h.

                            and by "any" you mean random, right?
                            I should have specified the random part. Should build the list in sequence. from A- Z and 0 - 9.

                            I figured $30 was reasonable guess not. ICQ me if you want to do it 265054864

                            Comment

                            • Serge Litehead
                              Confirmed User
                              • Dec 2002
                              • 5190

                              #15
                              btw that "any" was confusing, its not any nor random, its from 0 to 9 & from A to Z
                              by your example

                              Comment

                              • Serge Litehead
                                Confirmed User
                                • Dec 2002
                                • 5190

                                #16
                                Originally posted by Muff
                                I should have specified the random part. Should build the list in sequence. from A- Z and 0 - 9.

                                I figured $30 was reasonable guess not. ICQ me if you want to do it 265054864
                                yup,

                                ok gotta load my icq 1 min

                                Comment

                                • Muff
                                  Confirmed User
                                  • Mar 2001
                                  • 1782

                                  #17
                                  Originally posted by holograph
                                  btw that "any" was confusing, its not any nor random, its from 0 to 9 & from A to Z
                                  by your example

                                  That's right.

                                  Comment

                                  • Muff
                                    Confirmed User
                                    • Mar 2001
                                    • 1782

                                    #18
                                    Originally posted by holograph
                                    yup,

                                    ok gotta load my icq 1 min
                                    If slap does he gets it. Add me anyways though, I always have little things like this that need to be done.

                                    Comment

                                    • labeledas
                                      Registered User
                                      • Oct 2002
                                      • 74

                                      #19
                                      just did a quick assesmnet and htis is a pretty complicated request for $30

                                      Comment

                                      • Muff
                                        Confirmed User
                                        • Mar 2001
                                        • 1782

                                        #20
                                        holographs got it.

                                        Thanks.

                                        Comment

                                        • labeledas
                                          Registered User
                                          • Oct 2002
                                          • 74

                                          #21
                                          damn good job man

                                          Comment

                                          • Muff
                                            Confirmed User
                                            • Mar 2001
                                            • 1782

                                            #22
                                            Originally posted by labeledas
                                            damn good job man
                                            Well he's working on it. Didn't realize it was that complicated. It would suck if someone worked on it only to post a few minutes later and get nothing.

                                            Comment

                                            • DaveKnell
                                              Registered User
                                              • May 2001
                                              • 76

                                              #23
                                              Quite a useful exercise: might give this as a problem to people we interview for coding jobs. Here's what I just knocked up - had 10 minutes to kill before the paper shop opens - just in case anyone else is in need of a similar morsel of code. No guarantees: it's worked a couple of times. Could be improved as well - the obvious one would be to have it cope with an arbitrary number of ?s and @s.

                                              Dave

                                              <?
                                              // Template
                                              $template = "?0?@";
                                              $fn = "/tmp/test";
                                              // Work out limit variables
                                              $ll = array();
                                              $ul = array();
                                              $cp = array();
                                              $ix = 0;
                                              for ($i=0; $i<strlen($template); $i++) {
                                              if (substr($template, $i, 1) hahahaha '@') {
                                              $ll[$ix] = 48;
                                              $ul[$ix] = 57;
                                              $cp[$ix++] = $i;
                                              } elseif (substr($template, $i, 1) hahahaha '?') {
                                              $ll[$ix] = 97;
                                              $ul[$ix] = 122;
                                              $cp[$ix++] = $i;
                                              }
                                              }
                                              // Output to file
                                              $fp = fopen($fn, "w");
                                              for ($i0=$ll[0]; $i0<=$ul[0]; $i0++) {
                                              for ($i1=$ll[1]; $i1<=$ul[1]; $i1++) {
                                              for ($i2=$ll[2]; $i2<=$ul[2]; $i2++) {
                                              $template = substr_replace($template, chr($i0), $cp[0], 1);
                                              $template = substr_replace($template, chr($i1), $cp[1], 1);
                                              $template = substr_replace($template, chr($i2), $cp[2], 1);
                                              fwrite($fp, "$template\n");
                                              }
                                              }
                                              }
                                              fclose($fp);
                                              ?>

                                              Comment

                                              • labeledas
                                                Registered User
                                                • Oct 2002
                                                • 74

                                                #24
                                                ok so i should still keep workin gon mine then, i just thought holographs was a damn super genious, i am going to get head bbl

                                                Comment

                                                • DaveKnell
                                                  Registered User
                                                  • May 2001
                                                  • 76

                                                  #25
                                                  Oh, for fuck's sake, the BBS software appears to have replaced = = (remove the space) with hahahaha in the if.. and elseif.. lines.

                                                  --Dave

                                                  Comment

                                                  • Adultnet
                                                    Confirmed User
                                                    • Sep 2003
                                                    • 8713

                                                    #26
                                                    yes it take some time to think how to make this..


                                                    TrafficCashGold Paying Webmasters Since 1996!

                                                    Awesome Conversions! Fast Weekly Payments! Over 125 Tours!

                                                    Comment

                                                    • Muff
                                                      Confirmed User
                                                      • Mar 2001
                                                      • 1782

                                                      #27
                                                      Originally posted by labeledas
                                                      ok so i should still keep workin gon mine then, i just thought holographs was a damn super genious, i am going to get head bbl
                                                      You can work on it if you want to but holographs got the cash.

                                                      Comment

                                                      • broke
                                                        Confirmed User
                                                        • Aug 2003
                                                        • 4501

                                                        #28
                                                        Nice work Dave.

                                                        Perfect Gonzo

                                                        Comment

                                                        • Adultnet
                                                          Confirmed User
                                                          • Sep 2003
                                                          • 8713

                                                          #29
                                                          nice one dave..


                                                          TrafficCashGold Paying Webmasters Since 1996!

                                                          Awesome Conversions! Fast Weekly Payments! Over 125 Tours!

                                                          Comment

                                                          • labeledas
                                                            Registered User
                                                            • Oct 2002
                                                            • 74

                                                            #30
                                                            good job dave, hats off to you

                                                            Comment

                                                            • Serge Litehead
                                                              Confirmed User
                                                              • Dec 2002
                                                              • 5190

                                                              #31
                                                              Muff, thanks for the challage, it's a good exersise, my brains needed that.
                                                              You've got email.

                                                              Dave, pretty close.

                                                              Comment

                                                              • spideriux
                                                                Registered User
                                                                • Feb 2005
                                                                • 17227

                                                                #32
                                                                Good job Dave, but I'm late
                                                                FreeOnes

                                                                Comment

                                                                Working...