Appendix A. Answers to Chapter Questions

Chapter 1

Solution to Question 1-1

A web server, a server-side programming language, and a database.

Solution to Question 1-2

Modules.

Solution to Question 1-3

5.1.

Solution to Question 1-4

Structured Query Language.

Solution to Question 1-5

They enclose HTML markup.

Solution to Question 1-6

It processes the HTML and PHP files.

Chapter 2

Solution to Question 2-1

Apache, PHP, and MySQL.

Solution to Question 2-2

Mac OS X, and many Linux distributions.

Solution to Question 2-3

The desktop.

Solution to Question 2-4

It indicates lines that are commented out.

Solution to Question 2-5

By not working on your local drive and transferring your files to a server.

Solution to Question 2-6

You can use an FTP program.

Solution to Question 2-7

Through a web server.

Chapter 3

Solution to Question 3-1

Everything renders as text; there is no code.

Solution to Question 3-2

HTML markup.

Solution to Question 3-3

By using two slash (//) marks.

Solution to Question 3-4

Single-line comments, which are indicated by two slash (//) marks, and multiline comments, which are indicated by an asterisk and slash. Use (/*) to open a multiline comment and (*/) to close it.

Solution to Question 3-5

A semicolon (;) ends all statements in PHP.

Solution to Question 3-6

A value.

Solution to Question 3-7

By using the following form: $variable_name = value;

Solution to Question 3-8

Yes.

Solution to Question 3-9

They allow you to group code chunks together and execute them by their ...

Get Learning PHP and MySQL 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.