Login   Register  
PHP Classes
elePHPant
Icontem

E-mail validation changes for PHP 5.3 - PHP Email validation package blog

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  All package blogs All package blogs   PHP Email validation PHP Email validation   Blog PHP Email validation package blog   RSS 1.0 feed RSS 2.0 feed   Blog E-mail validation cha...  
  Post a comment Post a comment   See comments See comments (5)   Trackbacks (0)  
>> Next: Did You Mean Advanced...

Author: Manuel Lemos

Posted on:

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.

You need to be a registered user or login to post a comment

1,296,296 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on:

Facebook ConnectGmail or other Google Account
Hotmail or Microsoft Windows LiveStackOverflow
GitHubYahoo


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


>> Next: Did You Mean Advanced...


  Post a comment Post a comment   See comments See comments (5)   Trackbacks (0)  
  All package blogs All package blogs   PHP Email validation PHP Email validation   Blog PHP Email validation package blog   RSS 1.0 feed RSS 2.0 feed   Blog E-mail validation cha...