Tips & Tricks: Input Filtering, Part 1

php|architect July 2005

Tips & Tricks: Input Filtering, Part 1: Why Filter
by Ben Ramsey
July 2005

From the introduction:

This year has seen an increased focus on PHP security, and this is good for the language, developers, and business community. One phrase that comes to mind when discussing secure coding practices is Chris Shiflett’s mantra of ‘filter input, escape output.’ While we know what this means in a general sense, practical examples elude us. Ben Ramsey provides part one of his input filtering series, chock full of code examples.