Htscanner allows one to use htaccess-like files to
configure PHP on a per-directory basis, just like
Apache's htaccess. It is especially useful with
fastcgi.
The Input Filter extension for PHP is an extension
for safely dealing with input parameters. It is
meant to address this issue by implementing a set
of filters and mechanisms that users can use to
safely access their input data.