3. Advanced Database Concepts

I had many goals in writing this second edition of my PHP Advanced book. The primary aim is to demonstrate what I consider to be “advanced” PHP programming: doing the things you already do but better, doing things tangentially related to PHP, and taking advantage of aspects of the language with which the average user may not be familiar. A second goal is to help solve some of the problems often put forth (to me or otherwise) in emails, forums, and newsgroups. This chapter addresses both goals equally.

For the first example, you’ll see how to use a database to store session data. Doing so offers many advantages, improved security being at the forefront. Next, a thorough discussion on how to work with U.S. zip codes, ...

Get PHP 5 Advanced: Visual QuickPro Guide 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.