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 #171701 is a reply to message #171698] Sun, 16 January 2011 17:04 Go to previous messageGo to previous message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma:
Senior Member
Captain Paralytic wrote:

> Thomas 'PointedEars' Lahn wrote:
>> Captain Paralytic wrote:
>>> On Jan 13, 11:26 pm, Mike <mpea...@gmail.com> wrote:
>>>> I thought .com, .asia, etc. was the "TLD". What would you call the
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>>> 'site.com' or 'site.co.uk' portion of the url? Regardless of the
>>>> name, can you suggest an effective and accurate way to extract it?
>>
>>> It is and it is also the root. It may not be the organisation root,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>> but it is the domain root.
^^^^^^^^^^^^^^^^^^^^^
>>> […]
>>> http://www.answers.com/topic/root-domain
>>
>> I suggest you re-read that (correct) answer you are referring to as it
>> proves you wrong.
>
> Here we go again! No it doesn't.

Yes, it does.

> There are 2 definitions there and only the second one refers to the
> internet. That definition quite clearly states: "The starting point
^^^^^^^^^^^^^^^^^^
> of the top level domain structure on the Internet. It is the root, or
> entry point, to the .com, .org, .net, etc. domains."
^^^^^^^^^^^^^^^

Yes, the *entry point* *to* those domains; not the domains themselves.

To be precise, the root domain is the trailing dot that is usually omitted,
as in foo.example.com.<-------------------------'

Notice the difference?


PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
[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: Wed Nov 27 01:00:48 GMT 2024

Total time taken to generate the page: 0.04603 seconds