Author: Manuel Lemos
Viewers: 5
Last month viewers: 3
Package: PHP Email validation
The e-mail validation class was enhanced to adapt to changes done in PHP 5.3.

- POSIX regular expressions are deprecated
As you may have noticed, since PHP 5.3 the use of POSIX regular expression functions is deprecated. The class was changes to use PCRE functions instead.
The syntax of the default e-mail address validation remains the same. The class converts the regular expressions to make them work with PCRE functions. So you do not need to change your code if you change the default e-mail regular expression.
- GetMXRR function in Windows
If you are using PHP on Windows, you may have noticed that now PHP 5.3 implements the GetMXRR. This function is used to determine the SMTP servers of a given e-mail address domain.
Therefore, if you use Windows on PHP 5.3, you no longer need to use alternative implementations of the GetMXRR function that used to be assigned to the getmxrr class variable. Just do not change that variable so the class uses the regular GetMXRR function implemented in PHP.
As you may have noticed, since PHP 5.3 the use of POSIX regular expression functions is deprecated. The class was changes to use PCRE functions instead.
The syntax of the default e-mail address validation remains the same. The class converts the regular expressions to make them work with PCRE functions. So you do not need to change your code if you change the default e-mail regular expression.
- GetMXRR function in Windows
If you are using PHP on Windows, you may have noticed that now PHP 5.3 implements the GetMXRR. This function is used to determine the SMTP servers of a given e-mail address domain.
Therefore, if you use Windows on PHP 5.3, you no longer need to use alternative implementations of the GetMXRR function that used to be assigned to the getmxrr class variable. Just do not change that variable so the class uses the regular GetMXRR function implemented in PHP.
You need to be a registered user or login to post a comment
1,617,425 PHP developers registered to the PHP Classes site.
Be One of Us!
Login Immediately with your account on:
Comments:
1. Use in Contact Forms - dave Stuttard (2009-09-12 15:59)
Trying to adapt it for on-the-fly use in contact forms... - 4 replies
Read the whole comment and replies