PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

Techie Talks Blog: Building Secured Web Applications Using PHP - The Basics

Note: This article was originally published at PHPDeveloper on 25 June 2011.
PHPDeveloper

On the Techie Talks blog today there's a post from Idrish Laxmidhar with a few simple reminders of things you can do to help with the basic security of your PHP applications, mostly surrounding filtering and escaping.

The list includes some of the basics like:

  • Avoiding $_REQUEST when possible because of the ambiguity of where the information could come from
  • Keep register_globals off (thankfully a default!)
  • Checking values for specific data types before using them
  • Filtering user input
  • Disabling the error output (turning down the reporting levels) on a production environment

For some more good recommendations on good security practices in PHP applications, check out this list or some of the recommendations from the PHP manual itself.