News Feed
Sections




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

PHPBuilder.com:
An introduction to PEAR's Validate package
July 26, 2006 @ 12:22:49

On PHPBuilder.com today, there's a new article introducing yet another valuable PEAR package - PEAR::Validate.

Poor validation is a key weakness many scripts are guilty of, enabling security exploits. The Validate package can be used to validate any data, and is especially useful for validating user input.

There are also related packages that apply specific validation rules according to geographic location. I don't cover these packages in this article, though once you've grasped the basics of the main Validate package, using these won't present much of a challenge.

They introduce the package by showing a quick install of it, including dependencies. From there, it's examples of different validation types:

  • email addresses
  • numbers
  • strings
  • dates
  • URLs

And it wouldn't be a tutorial without some code, so for each example there's a snippet or two and a breakdown of its usage.

1 comment voice your opinion now!
pear package introduction tutorial email string number date pear package introduction tutorial email string number date


blog comments powered by Disqus

Similar Posts

Community News: Latest PEAR Releases for 06.11.2007

Gergely Hodicska's Blog: What's new in PHP 5.3 - part 1: namespaces

Zend Developer Zone: Creating Data Tables With PEAR Structures_DataGrid

Gonzalo Ayuso's Blog: Watermarks in our images with PHP and Gearman

Shashikant Jagtap: Behat2.4 : Painless installation with Composer


Community Events

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


part2 application interview performance example framework voicesoftheelephpant conference introduction podcast language series symfony2 community opinion laravel php7 configure release api

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