Re: [PHP] get domain component from email

2007-08-08 Thread Stut
Daniel Brown wrote: On 8/7/07, Richard Lynch [EMAIL PROTECTED] wrote: On Tue, August 7, 2007 1:25 pm, Kevin Waterson wrote: Im looking for a way to get the domain from an email address. Not sub domains, just the domain, so [EMAIL PROTECTED] would return example.com.mn similarly, the address

Re: [PHP] get domain component from email

2007-08-07 Thread Jim Lucas
Kevin Waterson wrote: Hi all. Im looking for a way to get the domain from an email address. Not sub domains, just the domain, so [EMAIL PROTECTED] would return example.com.mn similarly, the address [EMAIL PROTECTED] would return example.com perhaps an array of tld's, then strip the tld

Re: [PHP] get domain component from email

2007-08-07 Thread Dan
Yup, that's pretty much what I wrote but with a bit more feedback for invalid addresses. - Dan Jim Lucas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Kevin Waterson wrote: Hi all. Im looking for a way to get the domain from an email address. Not sub domains, just the domain,

Re: [PHP] get domain component from email

2007-08-07 Thread Jim Lucas
Dan wrote: Yup, that's pretty much what I wrote but with a bit more feedback for invalid addresses. not exactly - Dan Jim Lucas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Kevin Waterson wrote: Hi all. Im looking for a way to get the domain from an email address. Not sub

Re: [PHP] get domain component from email

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 1:25 pm, Kevin Waterson wrote: Im looking for a way to get the domain from an email address. Not sub domains, just the domain, so [EMAIL PROTECTED] would return example.com.mn similarly, the address [EMAIL PROTECTED] would return example.com perhaps an array of

Re: [PHP] get domain component from email

2007-08-07 Thread Daniel Brown
On 8/7/07, Richard Lynch [EMAIL PROTECTED] wrote: On Tue, August 7, 2007 1:25 pm, Kevin Waterson wrote: Im looking for a way to get the domain from an email address. Not sub domains, just the domain, so [EMAIL PROTECTED] would return example.com.mn similarly, the address [EMAIL