PHP Classes

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

Recommend this page to a friend!
  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)  

Author:

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.




Loaded Article
- 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

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



  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...