About the Technical Reviewer
Chapter 1: Getting Ready to Program
Setting Up a Development Environment
What Is PHP? How Does PHP Work?
Storing Info with MySQL/MariaDB
Installing PHP, Apache, and MySQL/MariaDB
Step 2: Follow the Instructions
Step 3: Test XAMPP to Ensure Proper Installation
Open the XAMPP Control Panel
What If Apache Isn't Running?
Verify That Apache and PHP Are Running
Creating Your First PHP Program
Running Your First PHP Script
Chapter 2: Understanding PHP: Language Basics
Storing Values in a Variable
A Variable Is a Placeholder
Creating an HTML5 Page with PHP
Including a Simple Page Template
Block and Single-Line Comments
Avoiding Naming Conflicts
Using a StdClass Object for Page Data
Making a Dynamic Site Navigation
Passing Information with PHP
Using isset( ) to Test If a Variable Is Set
_GET, a Superglobal Array
Including Page Views Dynamically
Displaying a Default Page
Styling the Site with CSS
Declaring a Page_Data Class
Highlighting Current Navigation Item with a Dynamic Style Rule
Chapter 3: Form Management
Setting Up a New PHP Project
Creating a Dynamic Navigation
Creating Page Views for the Form
Displaying Page Views on the Index Page
The Element and Some Common Types
Understanding the Method Attribute
The Basic Syntax for Named Functions
Using Function Arguments for Increased Flexibility
Creating a Form for the Quiz
Using the _POST Superglobal
Curly's Law: Do One Thing
OOP: Using Constructors, Getters, and Setters
Chapter 4: Building a Dynamic Image Gallery
Setting Up a Dynamic Site