65
4
pHp eSSentIAl SecurIty
Every PHP/MySQL/HTML/JavaScript application has several parts that are the same
for every application. Security issues likewise require that certain procedures be followed
every time. It stands to reason that it is worthwhile to identify these parts and examine
how we can organize them into a reusable template. is is not a template in the same
category as a framework, such as the Zend Framework, but a template for laying out
and recognizing reusable parts from a project perspective. Chapter 7, “Project Layout
Template,” describes the specific files and code patterns common to many applications.
A Consistent UTF-8 Character Set
e first element that is the basis for a secure application is a consistent character set
encoding. ...