PHP Classes
Icontem

E-mail validation changes for PHP 5.3 - E-mail address validation class package blog


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  All package blogs All package blogs   E-mail address validation class E-mail address validation class   Blog E-mail address validation class 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: Manuel Lemos

Posted on: 2009-09-04

Package: E-mail address validation class

Summary: The e-mail validation class was enhanced to adapt to changes done in PHP 5.3.



Picture of Manuel Lemos
Manuel Lemos
ManuelLemos.net
- 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.

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




 

  All package blogs All package blogs   E-mail address validation class E-mail address validation class   Blog E-mail address validation class 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)  
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products