Welcome to Welcome to DNF.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars

If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.

Register Today on DNForum IT'S FREE!

Results 1 to 12 of 12
  1. #1
    Platinum Lifetime Member
    ccm's Avatar
    Join Date
    Oct 2004
    Location
    Florida
    Posts
    829
    DNF$
    2,612
    Bank
    0
    Total DNF$
    2,612
    Donate  

    Question How can I edit this script

    I have several scripts designed to generate NNNN, CVCV, etc, but I want to edit one to generate ALL LLLL combo's
    please pm me if you can help
    Thanks,
    Charles
    LumbarSpine.net | fishtail.net | EZPG.com | tightlines.org | MacNugget.com | kingfish.org | Tootle.net | z-z.org | hackspy.net | TheeBomb.com | surfnazi.com | Spouty.com |newcellphone |

  2. #2
    Moderator
    Johnn's Avatar
    Join Date
    Apr 2004
    Location
    Pennsylvania
    Posts
    15,008
    Country

    United States
    DNF$
    5,429
    Bank
    0
    Total DNF$
    5,429
    Donate  

    Re: How can I edit this script

    What language? php, python,asp,...???

  3. #3
    Platinum Lifetime Member
    ccm's Avatar
    Join Date
    Oct 2004
    Location
    Florida
    Posts
    829
    DNF$
    2,612
    Bank
    0
    Total DNF$
    2,612
    Donate  

    Re: How can I edit this script

    it's a php script, so I need to edit the code a bit to change it from cvcv to ALL letters,
    I think it would be the array would be
    $letters = array('a','b','c','d','e',,,,,,,,,etc, 'z') but fill in all the letters, and the next part wouldbe the output for each string, aLLL, abLL, acLL, so I am not sure the code to do that.
    if all that makes any sense
    LumbarSpine.net | fishtail.net | EZPG.com | tightlines.org | MacNugget.com | kingfish.org | Tootle.net | z-z.org | hackspy.net | TheeBomb.com | surfnazi.com | Spouty.com |newcellphone |

  4. #4
    Moderator
    Johnn's Avatar
    Join Date
    Apr 2004
    Location
    Pennsylvania
    Posts
    15,008
    Country

    United States
    DNF$
    5,429
    Bank
    0
    Total DNF$
    5,429
    Donate  

    Re: How can I edit this script

    There are many site that would allow you to search for 4-letter (I think) There is no need to re-invent the wheels.

  5. #5
    Account Terminated
    Join Date
    Nov 2006
    Location
    ●∞●∞●
    Posts
    1,397
    DNF$
    338
    Bank
    0
    Total DNF$
    338
    Donate  

    Re: How can I edit this script

    i=0;
    j=0;
    k=0;
    l=0;
    for (i < 26) {
    for (j < 26) {
    for (k < 26) {
    for (l < 26) {
    echo $letters [i] & $letters [j] & $letters[k] & $letters [l];
    l++;
    }
    l=0;
    k++;
    }
    k=0;
    j++;
    }
    j=0;
    i++;
    }
    Last edited by AlienGG; 04-24-2007 at 04:33 PM.

  6. #6
    Platinum Lifetime Member
    ccm's Avatar
    Join Date
    Oct 2004
    Location
    Florida
    Posts
    829
    DNF$
    2,612
    Bank
    0
    Total DNF$
    2,612
    Donate  

    Re: How can I edit this script

    Here's teh code for CVCV generator:

    Code:
    <?php
    
    $consonants = array('b','c','d','f','g','h','j','k','l','m','n',  'p','q','r','s','t','v','w','x','y','z');
    $vowels = array('a','e','i','o','u');
    
    $output .= '<pre>';
    foreach ($consonants as $a)
      foreach ($vowels as $b)
        foreach ($consonants as $c)
          foreach ($vowels as $d)
            $output .= $a . $b . $c . $d . ".com\n";
    echo $output . '</pre>';
    
    ?>
    I just want to edit it for ALL 4 LLLL combos
    LumbarSpine.net | fishtail.net | EZPG.com | tightlines.org | MacNugget.com | kingfish.org | Tootle.net | z-z.org | hackspy.net | TheeBomb.com | surfnazi.com | Spouty.com |newcellphone |

  7. #7
    Account Terminated
    Join Date
    Nov 2006
    Location
    ●∞●∞●
    Posts
    1,397
    DNF$
    338
    Bank
    0
    Total DNF$
    338
    Donate  

    Re: How can I edit this script

    I think mine works.

  8. #8
    Platinum Lifetime Member
    ccm's Avatar
    Join Date
    Oct 2004
    Location
    Florida
    Posts
    829
    DNF$
    2,612
    Bank
    0
    Total DNF$
    2,612
    Donate  

    Re: How can I edit this script

    great assface, any help?
    Last edited by ccm; 04-24-2007 at 04:45 PM.
    LumbarSpine.net | fishtail.net | EZPG.com | tightlines.org | MacNugget.com | kingfish.org | Tootle.net | z-z.org | hackspy.net | TheeBomb.com | surfnazi.com | Spouty.com |newcellphone |

  9. #9
    mvl's Avatar
    Join Date
    Sep 2006
    Location
    Netherlands
    Posts
    1,179
    DNF$
    7,336
    Bank
    0
    Total DNF$
    7,336
    Donate  

    Re: How can I edit this script

    I changed your code a little so it produces exactly what you want. Be patient, it will generate 456,976 domain names.

    Quote Originally Posted by ccm View Post
    Here's teh code for CVCV generator:

    Code:
    <?php
    
    $consonants = array('b','c','d','f','g','h','j','k','l','m','n',  'p','q','r','s','t','v','w','x','y','z');
    $vowels = array('a','e','i','o','u');
    
    $letters=array_merge($consonants, $vowels);
    
    $output .= '<pre>';
    foreach ($letters as $a)
      foreach ($letters as $b)
        foreach ($letters as $c)
          foreach ($letters as $d)
            $output .= $a . $b . $c . $d . ".com\n";
    echo $output . '</pre>';
    
    ?>
    I just want to edit it for ALL 4 LLLL combos
    Solution is to merge the $consonants and $vowels array and iterate over the elements of the resulting $letters array instead of the $consonants and $vowels arrays.

    Maybe this is even better, because it doesn't consume as much memory:
    Code:
    <?php
    
    $consonants = array('b','c','d','f','g','h','j','k','l','m','n',  'p','q','r','s','t','v','w','x','y','z');
    $vowels = array('a','e','i','o','u');
    
    $letters=array_merge($consonants, $vowels);
    
    echo  '<pre>';
    foreach ($letters as $a)
      foreach ($letters as $b)
        foreach ($letters as $c)
          foreach ($letters as $d)
            echo $a.$b.$c.$d.".com\n";
    echo '</pre>';
    
    ?>
    The difference is that the first script buffers all output until it has created all 456,976 possible domain names, needing memory to store them all. The second script outputs every domain as soon as it is constructed, only needing memory to store one domainname at a time.
    Last edited by mvl; 04-24-2007 at 04:53 PM.

  10. #10
    Platinum Lifetime Member
    ccm's Avatar
    Join Date
    Oct 2004
    Location
    Florida
    Posts
    829
    DNF$
    2,612
    Bank
    0
    Total DNF$
    2,612
    Donate  

    Re: How can I edit this script

    kickass, thanks Leo! I just edited it, and it works, I appreciate the help!
    added rating!

    Here's what I did:

    Code:
    <?php
    
    
    
    $letters = array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z');
    
    
    
    $letters=array_merge($letters);
    
    
    
    $output .= '<pre>';
    
    foreach ($letters as $a)
    
      foreach ($letters as $b)
    
        foreach ($letters as $c)
    
          foreach ($letters as $d)
    
            $output .= $a . $b . $c . $d . ".com\n";
    
    echo $output . '</pre>';
    
    
    
    ?>
    Last edited by ccm; 04-24-2007 at 05:27 PM. Reason: Automerged Doublepost
    LumbarSpine.net | fishtail.net | EZPG.com | tightlines.org | MacNugget.com | kingfish.org | Tootle.net | z-z.org | hackspy.net | TheeBomb.com | surfnazi.com | Spouty.com |newcellphone |

  11. #11
    Platinum Lifetime Member

    Join Date
    Nov 2006
    Location
    USA
    Posts
    493
    DNF$
    174
    Bank
    0
    Total DNF$
    174
    Donate  

    Re: How can I edit this script

    PHP Code:
    <?php

    $l 
    = array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o',  'p','q','r','s','t','u','v','w','x','y','z');

    $output .= '<pre>';
    foreach (
    $l as $a)
      foreach (
    $l as $b)
        foreach (
    $l as $c)
          foreach (
    $l as $d)
            
    $output .= $a $b $c $d ".com\n";
    echo 
    $output '</pre>';

    ?>

  12. #12
    mvl's Avatar
    Join Date
    Sep 2006
    Location
    Netherlands
    Posts
    1,179
    DNF$
    7,336
    Bank
    0
    Total DNF$
    7,336
    Donate  

    Re: How can I edit this script

    You don't need the array_merge($letters) if you put all letters in one array
    This was just a lazy way for me to merge the consonants and the vowels.

    Quote Originally Posted by ccm View Post
    kickass, thanks Leo! I just edited it, and it works, I appreciate the help!
    added rating!

    Here's what I did:

    [code removed]

Similar Threads

  1. traffic sedo and fabulous (i.e. roadsideloan.com)
    By DomainTurn.com in forum Domains for Sale (Domain Sales) - Offers Wanted
    Replies: 11
    Last Post: 03-14-2006, 12:28 AM
  2. publicdating.com
    By DomainTurn.com in forum Domains for Sale (Domain Sales) - Offers Wanted
    Replies: 0
    Last Post: 02-28-2006, 12:52 PM
  3. wagery.com
    By DomainTurn.com in forum Domains for Sale (Domain Sales) - Fixed Prices Above $100
    Replies: 0
    Last Post: 02-26-2006, 11:17 AM
  4. latex.cc all traffic names sedo and fabulous
    By DomainTurn.com in forum Domains for Sale (Domain Sales) - Fixed Prices Above $100
    Replies: 10
    Last Post: 02-24-2006, 02:06 PM
  5. No. 1 ranked on Dmoz for 'sex' :: Offers please
    By UrlPortfolio.com in forum Domains for Sale (Domain Sales) - Fixed Prices Above $100
    Replies: 18
    Last Post: 09-09-2003, 01:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Domain name forum recommended by Domaining.com