Re: [PHP] Validation Email in PHP programs

2001-04-04 Thread Renze Munnik
[EMAIL PROTECTED] wrote: > > Addressed to: "Steve Werby" <[EMAIL PROTECTED]> > <[EMAIL PROTECTED]> > > ** Reply to note from "Steve Werby" <[EMAIL PROTECTED]> Tue, 3 Apr 2001 >15:24:29 -0400 > > > > > > I should have said there's no *reliable* way to check whether an email > > add

Re: [PHP] Validation Email in PHP programs

2001-04-03 Thread Manuel Lemos
Hello, Steve Werby wrote: > > Only thing left is whether or not > > the user exists on the given mailserver. But for as far as I know > > you can't automatically check that. > > Renze is correct. Unless you're checking local email addresses which you > control, there's no way to check down to t

Re: [PHP] Validation Email in PHP programs

2001-04-03 Thread Manuel Lemos
Hello, Sharat Hegde wrote: > > Hello, > > I am trying to validate the email address in my PHP program using the ereg > function. I have different combinations of regular expressions to get the > chunks of the email substring before and after the @ symbol and the dot (.) > character. However, th

Re: [PHP] Validation Email in PHP programs

2001-04-03 Thread Steve Werby
<[EMAIL PROTECTED]> wrote: > ** Reply to note from "Steve Werby" <[EMAIL PROTECTED]> Tue, 3 Apr 2001 15:24:29 -0400 > > > > > > I should have said there's no *reliable* way to check whether an email > > address on an external server is valid. > > There is one _reliable_ way to verify the email add

Re: [PHP] Validation Email in PHP programs

2001-04-03 Thread php3
Addressed to: "Steve Werby" <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> ** Reply to note from "Steve Werby" <[EMAIL PROTECTED]> Tue, 3 Apr 2001 15:24:29 -0400 > > > I should have said there's no *reliable* way to check whether an email > address on an external server is valid. There i

Re: [PHP] Validation Email in PHP programs

2001-04-03 Thread Steve Werby
"Steve Werby" <[EMAIL PROTECTED]> wrote > Renze is correct. Unless you're checking local email addresses which you > control, there's no way to check down to that level. And be happy there > isn't. Otherwise the amount of spam you get right now will increase ten > fold. I should have said ther

Re: [PHP] Validation Email in PHP programs

2001-04-03 Thread Renze Munnik
Yep Steve is a smart man. The solutions I gave are good but can ruin your own performance totaly without it being your mistake. The bad performance of a different server (which you probably don't even know!) can ruin the speed of your site. Depending on the importance of the check you'll have

Re: [PHP] Validation Email in PHP programs

2001-04-03 Thread Steve Werby
"Renze Munnik" <[EMAIL PROTECTED]> wrote: > Besides the RE you might wanna take a look at these functions: > > http://www.php.net/manual/en/function.getmxrr.php > and > http://www.php.net/manual/en/function.checkdnsrr.php > > Using (one of) those you can check the email-address better. I.e. > the

Re: [PHP] Validation Email in PHP programs

2001-04-03 Thread Renze Munnik
Johannes Janson wrote: > > Hi, > > this is the regular expression from a PHP book. > > ereg("^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@([a-zA-Z0-9-]+\.)+([a-zA-z]{2,3})$, > $formfield"); > looks horrible but works. > Besides the RE you might wanna take a look at these functions: http://www.php.net

Re: [PHP] Validation Email in PHP programs

2001-04-03 Thread Johannes Janson
Hi, this is the regular expression from a PHP book. ereg("^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@([a-zA-Z0-9-]+\.)+([a-zA-z]{2,3})$, $formfield"); looks horrible but works. "Sharat Hegde" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 30402B4CB8C7D311A3C600C04F1513BC3BDAE4@bg2ipmail">news:30402B4CB8C7D