News Feed
Sections




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

NETTUTS.com:
Getting Clean With PHP
September 15, 2009 @ 11:55:55

New from NETTUTS.com today there's an article that both reminds PHP developers of the importance of filtering data and gives them a long list of the filters that PHP has to make it easy.

Data security is important and often undervalued by designers, developers, and clients alike. Since PHP 5.2.0, data sanitization and validation has been made significantly easier with the introduction of data filtering. Today, we're going to take a closer look at these filters, how to use them, and build a few custom functions.

They talk about filtering things like cross-site scripting, SQL injections and "improper" data in your submissions. They look at the filter extension and how the filter_var function can be used in combination with a long list of filter types to ensure the validity of your data (like FILTER_VALIDATE_EMAIL, FILTER_VALIDATE_IP, FILTER_SANITIZE_STRING and FILTER_SANITIZE_URL). They also briefly mention the use of custom functions to handle validation on more complex data sets.

0 comments voice your opinion now!
filter input tutorial extension


blog comments powered by Disqus

Similar Posts

onPHP5.com: Clickable, Obfuscated Email Addresses

DevShed: Using PDO Objects in PHP 5 - Using the PDO extension

Symfony Blog: How to send emails in symfony 1.1

DevShed: Defining the Core Structure of a PHP Blogger

Greg Beaver's Blog: Introducing pecl extension phar


Community Events





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


introduction opinion bugfix deployment voicesoftheelephpant series framework unittest interview language package zendserver laravel release podcast install community library api symfony

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