Appendix A. Solutions to Chapter Questions
- 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
Structured Query Language.
- Solution to Question 1-4
They enclose HTML markup.
- Solution to Question 1-5
It processes the HTML and PHP files.
- 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.
- 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 or /* */.
- Solution to Question 3-4
PHP offers 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. The third kind of comment comes from HTML, opening with
<!--
and closing with-->
.- 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 ...
Get Learning PHP & MySQL, 2nd Edition 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.