DNforum.com - Domain Sales, Domain Forum, Domain Appraisals
 
Register Now! 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.
Go Back   DNForum - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars > Content Development > Website Development and Design Discussion > Coding/Programming/Languages
Start your Domain Reseller Business Today and Earn Money!
Reply
 
LinkBack Thread Tools Display Modes
Old 04-24-2007, 03:38 PM   #1 (permalink)
ccm
Platinum Lifetime Member
 
ccm's Avatar
 
Last Online: 07-21-2008 12:46 PM
iTrader: (24)
Join Date: Oct 2004
Posts: 817
DNF$: 2,387
Location: Florida


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 |
ccm is offline   Reply With Quote
Old 04-24-2007, 04:38 PM   #2 (permalink)
Exclusive Senior Newbie
 
Johnn's Avatar
 
Last Online: Yesterday 11:49 PM
iTrader: (284)
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
Johnn is offline   Reply With Quote
Old 04-24-2007, 05:05 PM   #3 (permalink)
ccm
Platinum Lifetime Member
 
ccm's Avatar
 
Last Online: 07-21-2008 12:46 PM
iTrader: (24)
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 |
ccm is offline   Reply With Quote
Old 04-24-2007, 05:09 PM   #4 (permalink)
Exclusive Senior Newbie
 
Johnn's Avatar
 
Last Online: Yesterday 11:49 PM
iTrader: (284)
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
Johnn is offline   Reply With Quote
Old 04-24-2007, 05:16 PM   #5 (permalink)
Platinum Lifetime Member
 
AlienGG's Avatar
 
Name: G
Last Online: 07-13-2008 07:37 PM
iTrader: (9)
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.
AlienGG is offline   Reply With Quote
Old 04-24-2007, 05:27 PM   #6 (permalink)
ccm
Platinum Lifetime Member
 
ccm's Avatar
 
Last Online: 07-21-2008 12:46 PM
iTrader: (24)
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 |
ccm is offline   Reply With Quote
Old 04-24-2007, 05:32 PM   #7 (permalink)
Platinum Lifetime Member
 
AlienGG's Avatar
 
Name: G
Last Online: 07-13-2008 07:37 PM
iTrader: (9)
Join Date: Nov 2006
Posts: 1,404
DNF$: 1,109
Location: ●∞●∞●∞●∞●∞●∞●
Country:


Re: How can I edit this script

I think mine works.
AlienGG is offline   Reply With Quote
Old 04-24-2007, 05:39 PM   #8 (permalink)
ccm
Platinum Lifetime Member
 
ccm's Avatar
 
Last Online: 07-21-2008 12:46 PM
iTrader: (24)
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.
ccm is offline   Reply With Quote
Old 04-24-2007, 05:45 PM   #9 (permalink)
mvl
formerly known as 'leo'
 
Last Online: 07-11-2008 01:22 AM
iTrader: (12)
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 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.
__________________
SATAN.EU APPLICATIONS.EU MEDICALSERVICES.EU REFERRAL(s).EU
VOI.EU UUDD.COM

Last edited by mvl; 04-24-2007 at 05:53 PM.
mvl is offline   Reply With Quote
Old 04-24-2007, 05:52 PM   #10 (permalink)
ccm
Platinum Lifetime Member
 
ccm's Avatar
 
Last Online: 07-21-2008 12:46 PM
iTrader: (24)
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
ccm is offline   Reply With Quote
Old 04-24-2007, 09:28 PM   #11 (permalink)
Platinum Lifetime Member
 
Name: Jason
Last Online: 06-10-2008 02:27 PM
iTrader: (10)
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>';

?>
JRBHosting is offline   Reply With Quote
Old 04-25-2007, 02:24 AM   #12 (permalink)
mvl
formerly known as 'leo'
 
Last Online: 07-11-2008 01:22 AM
iTrader: (12)
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 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]
__________________
SATAN.EU APPLICATIONS.EU MEDICALSERVICES.EU REFERRAL(s).EU
VOI.EU UUDD.COM
mvl is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -4. The time now is 05:33 AM.
Copyright @2001-2008 DNForum.com

Learn Domains
Promote Domains
Research Domains
Buy Domains
Resell Domains
Park Domains
Sell Domains
Build Domains
Host Domains
Trademark Domains
Domain Domains
manage Domains
Appraise Domains