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 #171655 is a reply to message #171644] Fri, 14 January 2011 11:17 Go to previous messageGo to previous message
Captain Paralytic is currently offline  Captain Paralytic
Messages: 204
Registered: September 2010
Karma:
Senior Member
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.

You will see a lot of companies that have something.uk.com. This is
because someone registered uk.com and now sells subdomains to other
companies. you have no way of knowing how many domain elements you
need to get to the organisation root.

http://www.answers.com/topic/root-domain
[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 03:18:12 GMT 2024

Total time taken to generate the page: 0.04477 seconds