PHP’s Filter Extension<br />August 16, 2011<br />NWO-PUG <br />1<br />E-mail: chris@ctankersley.com<br />Twitter: @dragonm...
Who Are You and Why Are You In My House?<br />Chris Tankersley<br />Doing PHP for 8 Years<br />Lots of projects no one use...
Some Background<br />Enabled by default since 5.2.0<br />Provides both Validation and Sanitization<br />Very easy to use t...
Validation<br />Makes sure that data meets specifications<br />An e-mail address looks like an e-mail address<br />Allows ...
Validating Data<br />April 26, 2011<br />NWO-PUG <br />5<br />
What Filters are Available?<br />April 26, 2011<br />NWO-PUG <br />6<br />
Sanitization<br />Removes data that does not meet specifications<br />Many more options with this<br />April 26, 2011<br /...
Sanitizing Data<br />April 26, 2011<br />NWO-PUG <br />8<br />
What Sanitizers are Available?<br />April 26, 2011<br />NWO-PUG <br />9<br />
What Sanitizers are Available?<br />April 26, 2011<br />NWO-PUG <br />10<br />
Manual Filters<br />April 26, 2011<br />NWO-PUG <br />11<br />
filter_has_var<br />Used as further validation for data input<br />April 26, 2011<br />NWO-PUG <br />12<br />
April 26, 2011<br />NWO-PUG <br />13<br />
Questions?<br />April 26, 2011<br />NWO-PUG <br />14<br />
Links<br />Where to Find Stuff I Talked About<br />April 26, 2011<br />NWO-PUG <br />15<br />
Links<br />Filter Documentation<br />http://www.php.net/manual/en/book.filter.php<br />April 26, 2011<br />NWO-PUG <br />1...
Upcoming SlideShare
Loading in …5
×

PHP's Filter Module

3,472 views

Published on

An overview of PHP's Filt

Published in: Lifestyle, Technology
1 Comment
6 Likes
Statistics
Notes
  • http://www.dbmanagement.info/Tutorials/MYSQL-PHP.htm
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
3,472
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
23
Comments
1
Likes
6
Embeds 0
No embeds

No notes for slide

PHP's Filter Module

  1. 1. PHP’s Filter Extension<br />August 16, 2011<br />NWO-PUG <br />1<br />E-mail: chris@ctankersley.com<br />Twitter: @dragonmantank<br />Identi.ca: dragonmantank<br />
  2. 2. Who Are You and Why Are You In My House?<br />Chris Tankersley<br />Doing PHP for 8 Years<br />Lots of projects no one uses, and a few that some do<br />TL;DR https://github.com/dragonmantank<br />April 26, 2011<br />NWO-PUG <br />2<br />
  3. 3. Some Background<br />Enabled by default since 5.2.0<br />Provides both Validation and Sanitization<br />Very easy to use to work with data<br />Exposed via the filter_var() function<br />April 26, 2011<br />NWO-PUG <br />3<br />
  4. 4. Validation<br />Makes sure that data meets specifications<br />An e-mail address looks like an e-mail address<br />Allows basic validation<br />Boolean<br />E-mail<br />Float<br />Int<br />IP<br />Regex<br />URL<br />April 26, 2011<br />NWO-PUG <br />4<br />
  5. 5. Validating Data<br />April 26, 2011<br />NWO-PUG <br />5<br />
  6. 6. What Filters are Available?<br />April 26, 2011<br />NWO-PUG <br />6<br />
  7. 7. Sanitization<br />Removes data that does not meet specifications<br />Many more options with this<br />April 26, 2011<br />NWO-PUG <br />7<br />
  8. 8. Sanitizing Data<br />April 26, 2011<br />NWO-PUG <br />8<br />
  9. 9. What Sanitizers are Available?<br />April 26, 2011<br />NWO-PUG <br />9<br />
  10. 10. What Sanitizers are Available?<br />April 26, 2011<br />NWO-PUG <br />10<br />
  11. 11. Manual Filters<br />April 26, 2011<br />NWO-PUG <br />11<br />
  12. 12. filter_has_var<br />Used as further validation for data input<br />April 26, 2011<br />NWO-PUG <br />12<br />
  13. 13. April 26, 2011<br />NWO-PUG <br />13<br />
  14. 14. Questions?<br />April 26, 2011<br />NWO-PUG <br />14<br />
  15. 15. Links<br />Where to Find Stuff I Talked About<br />April 26, 2011<br />NWO-PUG <br />15<br />
  16. 16. Links<br />Filter Documentation<br />http://www.php.net/manual/en/book.filter.php<br />April 26, 2011<br />NWO-PUG <br />16<br />

×