Skip to Content
Learning PHP & MySQL, 2nd Edition
book

Learning PHP & MySQL, 2nd Edition

by Michele E. Davis, Jon A. Phillips
August 2007
Beginner
428 pages
8h 59m
English
O'Reilly Media, Inc.
Content preview from Learning PHP & MySQL, 2nd Edition

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Learning PHP, MySQL & JavaScript, 5th Edition

Learning PHP, MySQL & JavaScript, 5th Edition

Robin Nixon
Learning PHP and MySQL

Learning PHP and MySQL

Michele E. Davis, Jon A. Phillips

Publisher Resources

ISBN: 9780596514013Errata Page