CHAPTER 6

image

Security, Forms, and Error Handling

One of the most singular characteristics of the art of deciphering is the strong conviction possessed by every person, even moderately acquainted with it, that he is able to construct a cipher which nobody else can decipher.

—Charles Babbage (1864)

This chapter builds on the structure-related topics of the previous one, getting into much more detail about security, forms, logging in and out, and error handling. I start with a review of PHP security in general, and then make that discussion concrete with specific coding examples.

PHP Security Overview

I start by reviewing the important PHP security ...

Get Expert PHP and MySQL: Application Design and Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.