Re: [PHP] Re: get domain component from email

2007-08-09 Thread Stut
Richard Lynch wrote: On Wed, August 8, 2007 4:26 am, Stut wrote: Completely agree. It's like banning someone from a pub based on the clothes they were wearing the last time you saw them. Yeah, one drunk abusive chick in a little black dress could get EVERY gal in a little black dress banned.

Re: [PHP] Re: get domain component from email

2007-08-08 Thread Richard Lynch
On Wed, August 8, 2007 4:26 am, Stut wrote: > Completely agree. It's like banning someone from a pub based on the > clothes they were wearing the last time you saw them. Yeah, one drunk abusive chick in a little black dress could get EVERY gal in a little black dress banned. That's pretty messed

Re: [PHP] Re: get domain component from email

2007-08-08 Thread Stut
Richard Lynch wrote: On Tue, August 7, 2007 6:21 pm, Stut wrote: Kevin Waterson wrote: I would like to prevent registration of emails from certain domains that abuse a forum. eg: foo.uy7f564d8d6d.com These domains are registered by the thousands by spammers and because they use dyndns it is imp

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 6:21 pm, Stut wrote: > Kevin Waterson wrote: >> I would like to prevent registration of emails from certain domains >> that >> abuse a forum. eg: foo.uy7f564d8d6d.com >> These domains are registered by the thousands by spammers and >> because they >> use dyndns it is impossib

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 4:46 pm, Jim Lucas wrote: > Are all domains that use ccTLD's created/formatted like other not > ccTLD's just with the .uk or > whatever tagged on the end? No. Every ccTLD country is free to sub-divide as the government of that country sees fit, so long as the sub-divisions

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 4:39 pm, Stut wrote: > Which brings me back to my earlier question of why would you want to > do > this? I can't think of any reason, but then again it is getting late. +1 What you are trying to do has been tried many times before, to disastrous results. Step back and show

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Dan
Manually aprove forum signups. If people are serious about being a productive part of your forum they'll wait a few hours or a day to be confirmed. Otherwise they probably just have a question they're blasting at every forum they can find, or are spammers. I've never had a problem with this

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Stut
Kevin Waterson wrote: This one time, at band camp, Stut <[EMAIL PROTECTED]> wrote: Which brings me back to my earlier question of why would you want to do this? I can't think of any reason, but then again it is getting late. I would like to prevent registration of emails from certain domains

Re: [PHP] Re: get domain component from email

2007-08-07 Thread william(at)elan.net
way to do so by using dns records. It's like 5 lines, here's the site http://www.sitepoint.com/article/users-email-address-php The requirement for email delivery is not MX, just having an A address is enough. Also executing external utility program from php is not optimal from system point of

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Kevin Waterson
This one time, at band camp, Stut <[EMAIL PROTECTED]> wrote: > Which brings me back to my earlier question of why would you want to do > this? I can't think of any reason, but then again it is getting late. I would like to prevent registration of emails from certain domains that abuse a forum.

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Jim Lucas
Stut wrote: Jim Lucas wrote: Are all domains that use ccTLD's created/formatted like other not ccTLD's just with the .uk or whatever tagged on the end? Something like this your example stut.co.uk is this the base for your domain. Basically, would this be stut.com if it were a dot.com ??

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Stut
Jim Lucas wrote: Are all domains that use ccTLD's created/formatted like other not ccTLD's just with the .uk or whatever tagged on the end? Something like this your example stut.co.uk is this the base for your domain. Basically, would this be stut.com if it were a dot.com ?? or would it b

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Jim Lucas
Stut wrote: Jim Lucas wrote: Stut wrote: Jim Lucas wrote: Dan wrote: What are you trying to do exactly, maybe there's a better way. If you're trying to determine if an email address is valid there's a pretty cool way to do so by using dns records. It's like 5 lines, here's the site http:

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Stut
Jim Lucas wrote: Stut wrote: Jim Lucas wrote: Dan wrote: What are you trying to do exactly, maybe there's a better way. If you're trying to determine if an email address is valid there's a pretty cool way to do so by using dns records. It's like 5 lines, here's the site http://www.sitepoi

Re: [PHP] Re: get domain component from email

2007-08-07 Thread FrozenDice
I guess I was just happy that I was able to remember how to do PHP. Yeah, that one works better. Just seemed a bit similar. Besides, people usually give pseudo code any way rather than working code. My code didn't work. Yours was better. - Dan On 8/7/07, Jim Lucas <[EMAIL PROTECTED]> wrote: >

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Jim Lucas
Stut wrote: Jim Lucas wrote: Dan wrote: What are you trying to do exactly, maybe there's a better way. If you're trying to determine if an email address is valid there's a pretty cool way to do so by using dns records. It's like 5 lines, here's the site http://www.sitepoint.com/article/user

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Jim Lucas
Stut wrote: Jim Lucas wrote: Dan wrote: What are you trying to do exactly, maybe there's a better way. If you're trying to determine if an email address is valid there's a pretty cool way to do so by using dns records. It's like 5 lines, here's the site http://www.sitepoint.com/article/user

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Stut
Jim Lucas wrote: Dan wrote: What are you trying to do exactly, maybe there's a better way. If you're trying to determine if an email address is valid there's a pretty cool way to do so by using dns records. It's like 5 lines, here's the site http://www.sitepoint.com/article/users-email-addre

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Jim Lucas
Dan wrote: What are you trying to do exactly, maybe there's a better way. If you're trying to determine if an email address is valid there's a pretty cool way to do so by using dns records. It's like 5 lines, here's the site http://www.sitepoint.com/article/users-email-address-php As far as

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Daniel Brown
On 8/7/07, Stut <[EMAIL PROTECTED]> wrote: > Dan wrote: > > yes co.uk is a tdl. > > No it's not, it's a ccTLD which is a TLD specific to a country. > > > "Kevin Waterson" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > >> Hi all. > >> > >> Im looking for a way to get the domain fr

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Dan
Well then he needs an array of ccTLD's and pretty much anything that can follow a domain name. In my previous code change the array you're giving it to be of ccTLD's and also you might want to pass that array in through the funciton. As I said, been a while since I did PHP. - Dan "Stut" <[E

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Stut
Dan wrote: yes co.uk is a tdl. No it's not, it's a ccTLD which is a TLD specific to a country. "Kevin Waterson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi all. Im looking for a way to get the domain from an email address. Not sub domains, just the domain, so [EMAIL PROTE