1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

domain lists - how to sort

Discussion in 'Content Management' started by login, Jan 14, 2007.

  1. #1
    Hi.
    I have domain lists with something like 50000 domains. I need to sort them after TLD, how can I do this ?
     
    login, Jan 14, 2007 IP
  2. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #2
    How is the list stored? A .csv file? I would create a database table and import all domain names into it. The table would contain two fields: DomainName and TLD, then I would generate the generate a script to extract each domain's extension from the first field using the substr() function and insert it into the second field. Then you can sort the listing by TLD column as you please.
     
    Clive, Jan 15, 2007 IP
  3. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #3
    Its a txt file.

    The format is

    ***.com/forum
    *****.se/shop
    ***.co.uk

    and so on.

    And I do not know php or programming.
     
    login, Jan 15, 2007 IP