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

PHPWomen.org:
Filter and PHP 5.2
Nov 03, 2006 @ 19:28:00

In this new post on the PHP Women blog, auroraeosrose talks about one one the newest features in the latest PHP 5 series release - the Filter extension.

In response to a lot of griping from the PHP community about a lack of unified cleaning of user supplied data, 5.2 is introducing a new extension included by default, called filter.

She points to some of the resources associated with it - the manual entry and a short tutorial on the topic to get you started. She also mentions something newbies to the extension might not know - that it does two jobs, sanitizes and validates.

tagged: filter extensipn php5 sanitizes validates manual tutorial filter extensipn php5 sanitizes validates manual tutorial

Link:

PHPWomen.org:
Filter and PHP 5.2
Nov 03, 2006 @ 19:28:00

In this new post on the PHP Women blog, auroraeosrose talks about one one the newest features in the latest PHP 5 series release - the Filter extension.

In response to a lot of griping from the PHP community about a lack of unified cleaning of user supplied data, 5.2 is introducing a new extension included by default, called filter.

She points to some of the resources associated with it - the manual entry and a short tutorial on the topic to get you started. She also mentions something newbies to the extension might not know - that it does two jobs, sanitizes and validates.

tagged: filter extensipn php5 sanitizes validates manual tutorial filter extensipn php5 sanitizes validates manual tutorial

Link:

Jonathan Snook's Blog:
CakePHP: Data Validation
Jun 20, 2006 @ 10:42:38

Jonathan Snook continues his look at the CakePHP framework today with this new post on his blog, specifically looking at data validation methods.

Validation is one of the basic and most tedious tasks in application development. If there was ever a reason to use a framework this would be it. There are two ways that appear to be advocated by the CakePHP site and while both have benefits, I'm using a slightly different approach.

The "two ways" he mentions are auto-validation and using the validates() function (different from the suggestion in the CakePHP wiki of overriding the beforeSave() function). The first is built-in functionality, and is simpler to use. It allows you to define custom profiles for your values, ensuring they match the requirements. Using the validates() function is actually overriding a standard function and can be used to do more custom validation on the values passed back in.

tagged: cakephp data validation autovalidate validates function cakephp data validation autovalidate validates function

Link:

Jonathan Snook's Blog:
CakePHP: Data Validation
Jun 20, 2006 @ 10:42:38

Jonathan Snook continues his look at the CakePHP framework today with this new post on his blog, specifically looking at data validation methods.

Validation is one of the basic and most tedious tasks in application development. If there was ever a reason to use a framework this would be it. There are two ways that appear to be advocated by the CakePHP site and while both have benefits, I'm using a slightly different approach.

The "two ways" he mentions are auto-validation and using the validates() function (different from the suggestion in the CakePHP wiki of overriding the beforeSave() function). The first is built-in functionality, and is simpler to use. It allows you to define custom profiles for your values, ensuring they match the requirements. Using the validates() function is actually overriding a standard function and can be used to do more custom validation on the values passed back in.

tagged: cakephp data validation autovalidate validates function cakephp data validation autovalidate validates function

Link:


Trending Topics: