Re: getting base domain and sub domains from url?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 16 Sep 2006, at 16:26 , Kenneth Andresen wrote:
It gives the top level ones, but I can't seem to find the lower
specifications covering such as .co.uk  .com.mx  etc.

There is no lower 'specification' because each one is unique.

.mx is administered, for example, by www.nic.mx (I believe), so it is their option to subdivide the .mx tld however they see fit. Each tld gets to do this however it wants. Mexico chose .com.mx and .gob.mx (the latter for government sites), for example, while the UK chose .co.uk and .me.uk (the latter for personal pages), etc. Since each one of these tlds is managed independently, it would be nearly impossible to construct a list of the possible second level domains for al the tlds. Sure, you might be able to get .mx and .uk info fairly easily, but what about .cc or .cx or .fj? And as soon as you do construct such a list, it will be out of date.

If you are trying to verify a valid email address or a valid domain, there are better ways.

--
Why can't you be in a good mood? How hard is it to decide to be in a good mood and be in a good mood once in a while?"

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux