News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Evert Pot's Blog:
Internationalized domain names, are you ready?
October 25, 2010 @ 09:44:13

In a new post to his blog Evert Pot looks at internationalized domain names and where they could cause issues some of the current validation in PHP applications.

Since may 11 TLD's (top-level domain names) have been added. In order for this to work successfully, a lot of applications will have to be fixed. Many email-validation scripts might use [a regular expression] approach [to match most address formats].

Unfortunately, this approach will only continue to work with the normal ASCII-based domain names. He includes a list of several that could break it including ones in Chinese, Korean, Persian, Russian and Arabic. He recommends a very liberal regular expression (one that allows for "punycode" strings) to check the email, find the record and try to find an MX record on that domain.

1 comment voice your opinion now!
internationalized domain name validation email


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: Sending Confirmation Emails with Phalcon and Swift

Melvin Rivera's Blog: Creating a custom WordPress database error page

Stefan Mischook's Blog: New PHP article in Web Designer Magazine

DevShed: Decoupling the Validation of Data with Bridge Classes in PHP 5

PHPMaster.com: ClamAV as a Validation Filter in Zend Framework


Community Events

Don't see your event here?
Let us know!


feature series opinion unittest wordpress api podcast development laravel5 library voicesoftheelephpant language laravel interview threedevsandamaybe framework release community extension introduction

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework