 | Welcome to Dnforum.com
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast and simple so please, join our community today!
If you have any problems with the registration process or your account login, please contact us. |  |
04-24-2007, 03:38 PM
|
#1 (permalink)
| | Platinum Lifetime Member
Last Online: 07-21-2008 12:46 PM Join Date: Oct 2004
Posts: 817
DNF$: 2,387 Location: Florida | 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 | |
| |
04-24-2007, 04:38 PM
|
#2 (permalink)
| | Exclusive Senior Newbie
Last Online: Yesterday 11:49 PM Join Date: Apr 2004
Posts: 8,132
DNF$: 15,484 Location: Pennsylvania
Country: | Re: How can I edit this script What language? php, python,asp,...???
__________________ AVU.net DGV.net FVM.net FVV.net GOY.net MDA.net MNV.net OAU.net
OEA.net OOD.net OOM.net PNU.net PVD.net SUO.net UBM.net UPM.net YEU.net |
| |
04-24-2007, 05:05 PM
|
#3 (permalink)
| | Platinum Lifetime Member
Last Online: 07-21-2008 12:46 PM Join Date: Oct 2004
Posts: 817
DNF$: 2,387 Location: Florida | 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 | |
| |
04-24-2007, 05:09 PM
|
#4 (permalink)
| | Exclusive Senior Newbie
Last Online: Yesterday 11:49 PM Join Date: Apr 2004
Posts: 8,132
DNF$: 15,484 Location: Pennsylvania
Country: | 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.
__________________ AVU.net DGV.net FVM.net FVV.net GOY.net MDA.net MNV.net OAU.net
OEA.net OOD.net OOM.net PNU.net PVD.net SUO.net UBM.net UPM.net YEU.net |
| |
04-24-2007, 05:16 PM
|
#5 (permalink)
| | Platinum Lifetime Member
Name: G Last Online: 07-13-2008 07:37 PM Join Date: Nov 2006
Posts: 1,404
DNF$: 1,109 Location: ●∞●∞●∞●∞●∞●∞●
Country: | 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 05:33 PM.
|
| |
04-24-2007, 05:27 PM
|
#6 (permalink)
| | Platinum Lifetime Member
Last Online: 07-21-2008 12:46 PM Join Date: Oct 2004
Posts: 817
DNF$: 2,387 Location: Florida | 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 | |
| |
04-24-2007, 05:32 PM
|
#7 (permalink)
| | Platinum Lifetime Member
Name: G Last Online: 07-13-2008 07:37 PM Join Date: Nov 2006
Posts: 1,404
DNF$: 1,109 Location: ●∞●∞●∞●∞●∞●∞●
Country: | Re: How can I edit this script I think mine works. |
| |
04-24-2007, 05:39 PM
|
#8 (permalink)
| | Platinum Lifetime Member
Last Online: 07-21-2008 12:46 PM Join Date: Oct 2004
Posts: 817
DNF$: 2,387 Location: Florida | Re: How can I edit this script great assface, any help?
__________________ 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 |
Last edited by ccm; 04-24-2007 at 05:45 PM.
|
| |
04-24-2007, 05:45 PM
|
#9 (permalink)
| | formerly known as 'leo'
Last Online: 07-11-2008 01:22 AM Join Date: Sep 2006
Posts: 635
DNF$: 100 Location: Netherlands
Country: | 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 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.
__________________ SATAN.EU APPLICATIONS.EU MEDICALSERVICES.EU REFERRAL(s).EU VOI.EU UUDD.COM
Last edited by mvl; 04-24-2007 at 05:53 PM.
|
| |
04-24-2007, 05:52 PM
|
#10 (permalink)
| | Platinum Lifetime Member
Last Online: 07-21-2008 12:46 PM Join Date: Oct 2004
Posts: 817
DNF$: 2,387 Location: Florida | 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>';
?>
__________________ 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 |
Last edited by ccm; 04-24-2007 at 06:27 PM.
Reason: Automerged Doublepost
|
| |
04-24-2007, 09:28 PM
|
#11 (permalink)
| | Platinum Lifetime Member
Name: Jason Last Online: 06-10-2008 02:27 PM Join Date: Nov 2006
Posts: 493
DNF$: 5,125 Location: USA
Country: | 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>';
?> |
| |
04-25-2007, 02:24 AM
|
#12 (permalink)
| | formerly known as 'leo'
Last Online: 07-11-2008 01:22 AM Join Date: Sep 2006
Posts: 635
DNF$: 100 Location: Netherlands
Country: | 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 kickass, thanks Leo! I just edited it, and it works, I appreciate the help!
added rating!
Here's what I did:
[code removed] |
__________________ SATAN.EU APPLICATIONS.EU MEDICALSERVICES.EU REFERRAL(s).EU VOI.EU UUDD.COM |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| | | | All times are GMT -4. The time now is 05:33 AM.
Copyright @2001-2008 DNForum.com
|