News Feed
Sections




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

SitePoint PHP Blog:
Zend_Filter Reviewed, Blacklist / Whitelist Filters
March 28, 2006 @ 18:20:37

The Zend Framework has definitely made a huge splash in the PHP community, and everyone is picking their piece of it to cover. In this new post from the SitePoint PHP blog, Maarten Manders highlights the Zend_Filter module.

I like Zend Framework's Zend_Filter class. It's basically a set of methods for validating untrusted data. Although the two arguably most important features isEmail() and isUri() (the latter can be worked around with Zend_Uri) are still missing, the whole thing looks promising already.

He starts with a few of his thoughts on the package ("Clean up the code of isHostname", "International support for isPhone") and some code to show how it can be implemented - filtering for use in a regular expression, validation of a string by a character whitelist as well as blacklisting, and using the Zend_Filter module for a more flexible isName.

0 comments voice your opinion now!
zend framework zend_filter whitelist blacklist zend framework zend_filter whitelist blacklist


blog comments powered by Disqus

Similar Posts

EllisLabs Blog: EllisLab moves to Mercurial, Assembla, BitBucket; CodeIgniter 2.0 Baking

The Bakery: Eight New Items (Components, Tutorials & Helpers)

Paul Jones: Symfony Components: Sometimes Decoupled, Sometimes Not

Leonid Mamchenkov: CakePHP 3, here we go again.

Davey Shafik's Blog: ZCEGuide.com Deadline Fast Approaching


Community Events

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


introduction series list interview opinion language community unittest laravel5 php7 framework podcast version voicesoftheelephpant video api example laravel library release

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