Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

PHP's Filter Module

3,587 views

Published on

An overview of PHP's Filt

Published in: Lifestyle, Technology
  • http://www.dbmanagement.info/Tutorials/MYSQL-PHP.htm
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

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 />

×