FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » extracting the root domain from a URL
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: extracting the root domain from a URL [message #171705 is a reply to message #171700] Sun, 16 January 2011 22:45 Go to previous message
Jonathan Stein is currently offline  Jonathan Stein
Messages: 43
Registered: September 2010
Karma:
Member
Den 16-01-2011 17:57, Thomas 'PointedEars' Lahn skrev:

>> If you look up www.example.com, and there is no A or AAAA record for
>> example.com,
>
> There is here, although not an authoritative one:

example.com was - as the name implies - just an example.

In general, if there is no A record for the 2nd level, your method would
return the 3rd level (or higher), even for TLDs where the 2nd level is
more likely to be what Mike wants as the "root domain".

- But I think Mike got some inspiration now, and if Google can't help
him the rest of the way, he's welcome back.

Regards

Jonathan
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: printing for dot matrix printers
Next Topic: having better solution to promote your products.
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Oct 21 01:28:26 GMT 2024

Total time taken to generate the page: 0.04110 seconds