Domain Manage

[PHP] Three Character Domain List

Discussion in 'Scripts and Coding' started by Aaron Clifford, Mar 10, 2011.

Thread Status:
Not open for further replies.
  1. Aaron Clifford United Kingdom

    Aaron Clifford Well-Known Member

    Joined:
    Jun 2010
    Posts:
    2,236
    Likes Received:
    29
    PHP:
    <?php

    // Set Extention
    $ext ".co.uk";

    $arr = Array();

    array_push($arr"a");
    array_push($arr"b");
    array_push($arr"c");
    array_push($arr"d");
    array_push($arr"e");
    array_push($arr"f");
    array_push($arr"g");
    array_push($arr"h");
    array_push($arr"i");
    array_push($arr"j");
    array_push($arr"k");
    array_push($arr"l");
    array_push($arr"m");
    array_push($arr"n");
    array_push($arr"o");
    array_push($arr"p");
    array_push($arr"q");
    array_push($arr"r");
    array_push($arr"s");
    array_push($arr"t");
    array_push($arr"u");
    array_push($arr"v");
    array_push($arr"w");
    array_push($arr"x");
    array_push($arr"y");
    array_push($arr"z");
    array_push($arr"0");
    array_push($arr"1");
    array_push($arr"2");
    array_push($arr"3");
    array_push($arr"4");
    array_push($arr"5");
    array_push($arr"6");
    array_push($arr"7");
    array_push($arr"8");
    array_push($arr"9");

    $results = Array();
    foreach ( 
    $arr as $three ) {
    foreach ( 
    $arr as $two ) {
    foreach ( 
    $arr as $one ) {
    array_push($results$three.$two.$one);
    }
    }
    }

    foreach( 
    $results as $result ) {
    echo 
    $result$ext<br>";
    }

    ?>
    Incase anyone needs it, remove the number rows to turn it into LLL
     
    Last edited: Mar 10, 2011
  2. Domain Forum

    Acorn Domains Elite Member

    Joined:
    1999
    Messages:
    Many
    Likes Received:
    Lots
     
  3. davedevelopment United Kingdom

    davedevelopment Well-Known Member

    Joined:
    May 2009
    Posts:
    1,108
    Likes Received:
    25
    PHP:

    $arr 
    range('a''z');

    // $arr = array_merge($arr, range(0, 9));

    Bit neater :)
     
    • Like Like x 1
  4. alex

    alex Active Member

    Joined:
    Sep 2007
    Posts:
    769
    Likes Received:
    21
    Also if anyone is interested I made this about 2 years ago - dnsg.co.uk. It creates domain sequences e.g. if you write aaa and zzz and .co.uk it will give you all LLL.co.uk's or aaaa and zzzz for LLLL.co.uk's etc. I haven't looked at it for ages, but it still works.

    You can also paste in a load of text and it should turn them into domains, although I don't think I ever finished it 100% - may be worth looking at again in the summer.
     
Thread Status:
Not open for further replies.

Share This Page