diederik
09-19-2004, 12:35 PM
Hi, I hope you can help me with the following
I've got a string, which contains a subdomain and domain - like "whatever.domain.com".
What I want, is only use the domain (domain.com) and disregard the first part (whatever.) and call it something like $domain
After that, I want something like if $domain = yahoo.com then show yahoo.gif, if it is google.com show google.com, etc.
Hope I've been clear in my question ;)
I've got a string, which contains a subdomain and domain - like "whatever.domain.com".
What I want, is only use the domain (domain.com) and disregard the first part (whatever.) and call it something like $domain
After that, I want something like if $domain = yahoo.com then show yahoo.gif, if it is google.com show google.com, etc.
Hope I've been clear in my question ;)
