[thelist] PHP: getting domain names from a url - being foiled by .co.uk addresses
Manuel González Noriega
manuel at simplelogica.net
Sat Dec 6 13:45:08 CST 2003
Dunstan Orchard wrote:
> Hi there,
>
> This is a tricky one I think.
>
>
Hi Dunstan,
not a full answer but can't you just explode($host) on '.', rather
than using strpos(),
that way you can count() the elements of the resulting array and act
accordingly.
Boy, i love to talk() like this ;)
--
Manuel González Noriega
Simplelógica, construcción web @ http://simplelogica.net
Logicola es el weblog de Simplelógica http://simplelogica.net/logicola/
More information about the thelist
mailing list