What language? php, python,asp,...???
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!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 |
What language? php, python,asp,...???
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 |
There are many site that would allow you to search for 4-letter (I think) There is no need to re-invent the wheels.
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.
Here's teh code for CVCV generator:
I just want to edit it for ALL 4 LLLL combosCode:<?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>'; ?>![]()
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 |
I think mine works.
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 |
I changed your code a little so it produces exactly what you want. Be patient, it will generate 456,976 domain names.
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:
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.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>'; ?>
Last edited by mvl; 04-24-2007 at 04:53 PM.
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 |
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>';
?>
Bookmarks