Contents

About the Author

Acknowledgments

Introduction

image Chapter 1: An Introduction to PHP 7

Chapter Objectives/Student Learning Outcomes

PHP 5.5+, PHP 7+, and PHP.NET

PHP 5.6+ and PHP 7+

Do It

PHP, JavaScript, CSS, HTML, and Apache Web Server

Do It

PHP, Apache, and MySQL

Do It

Putting it All Together—PHP, Apache, and MySQL

EasyPHP

XAMPP

Microsoft Internet Information Server

Do It

Testing Your Environment

Testing Your Administration Environment

Do It

Testing Your PHP Environment

EasyPHP’s Code Classroom

Do It

Alias Directories

Do It

Notepad++, Editors, and Code Testers

Notepad++

Other Editors

Do It

Chapter Terms

Chapter Questions and Projects

image Chapter 2: Interfaces, Platforms, Containers, and Three-Tier Programming

Chapter Objectives/Student Learning Outcomes

PHP Platforms and Containers

PHP PC Applications

PHP Smart Phone Applications

PHP Facebook and Other Social Applications

Do It

PHP, AJAX, and CSS—Web Applications

PHP, AJAX, and CSS—Smart Phone Web Applications

PHP Three-Tier Architecture

Do It

Interface Tier

Do It

Business Rules Tier

Do It

Data Tier

Do It

Putting It All Together

Case Study

Do It

MVC and Dependency Injection

Chapter Terms

Chapter Questions and Projects

image Chapter 3: Modular Programming

Chapter Objectives/Student Learning Outcomes

PHP Libraries, Extensions, Classes, and Objects

PHP Extensions

Classes and Objects

Creating a PHP Class

Do It

Return Method

Do It

Set Methods

Do It

Get Methods

Do It

Constructor Method

Do It

Chapter Terms

Chapter Questions and Projects

image Chapter 4: Secured User Interfaces

Chapter Objectives/Student Learning Outcomes

Secured User Interaction

HTML5 Form Validation

Do It

JavaScript Validation

Do It

PHP Filtering

Do It

Additional HTML Input Security

HTML5 Select List Box and Radio Buttons

Do It

Validating Input with an XML File

Dependency Injection

Do It

Chapter Terms

Chapter Questions and Projects

image Chapter 5: Handling and Logging Exceptions

Chapter Objectives/Student Learning Outcomes

Handling Exceptions

Do It

Exception and Error Handling vs. If/Else Conditions

Do It

Logging Exceptions

Do It

Reading Log and Text Files

Do It

Chapter Terms

Chapter Questions and Projects

image Chapter 6: Data Objects

Chapter Objectives/Student Learning Outcomes

The Data Class

JSON Data

MySQL Data

Do It

Backup and Recovery

JSON Backup and Recovery

MySQL Backup and Recovery

Do It

Connecting the Data Tier

Do It

Chapter Terms

Chapter Questions and Projects

image Chapter 7: Authentication

Chapter Objectives/Student Learning Outcomes

Verification and Sessions

JSON Data

MySQL Data

Do It

Registration

JSON Data

MySQL Data

Logging In

JSON Data

MySQL Data

Change Password

JSON Data

MySQL Data

Do It

Chapter Terms

Chapter Questions and Projects

image Chapter 8: Multifunctional Interfaces

Chapter Objectives/Student Learning Outcomes

The Complete Application

Data Handling Using JavaScript

Do It

Updating, Deleting, and Inserting in the Interface Tier

Do It

Updating, Deleting, and Inserting in the Business Rules Tier

Do It

Final Touches

Do It

ABC Canine Shelter Reservation System Logical Design

Limitations

Chapter Terms

Chapter Questions and Projects

Index