Imperial Valley College Faculty Websites

You are here:Instructors»Robert Gallegos»Chapter 6 Homework
Tuesday, 27 March 2012 20:39

Chapter 6 Homework

Written by Robert Gallegos
Rate this item
(0 votes)

CIS 214 PHP and MySQL

Chapter 6 Homework                                                                                                               Date due: 04/02/2012

Your name: _______________________________________________

 

1.

HTTP authentication provides a simple way to secure a page using __________________.

Answer:

2.

All web ___________________ are delivered with the help of headers.

Answer:

3.

The header() ___________________ lets you create and send a header from a PHP script.

Answer:

4.

Two specific headers are required to request the ______________________ of a web page.

Answer:

5.

PHP scripts can use ___________________ to control how the server delivers web content to the browser.

Answer:

6.

The built-in PHP header() function is used to send headers to the browser, which can be used to redirect a page, control the content type of a page, or request the ________________________ of a page.

Answer:

7.

When headers are sent to the browser using the ___________________ function, calls to the header() function must come before any other content is sent.

Answer:

8.

When a page is protected using HTTP authentication, the user name and password entered by the user are stored in the $_SERVER__________________.

Answer:

9.

The “_________________      ________________” of an HTTP authentication is a security zone that gets associated with a specific user name and password, allowing multiple pages to be secured together.

Answer:

10.

The built-in PHP ____________________  function exits a PHP script, preventing any code following it from being executed or otherwise sent to the browser.

Answer:

11.

Never underestimate the ability of determined people to ____________________- _____________________- your PHP scripts and exploit weaknesses.

Answer:

12.

Human moderation is an excellent way to improve the ___________________  of user submitted content.

Answer:

13.

Use __________________ to select rows based on the value of a certain column.

Answer:

14.

Form fields are a ___________________ weak point for web applications because they allow users to enter data.

Answer:

15.

SQL __________________ can be prevented by properly processing form data.

Answer:

16.

An ___________________ query can be written so that it nails down exactly what values go in what columns.

Answer:

17.

Whenever possible, insist on __________________ data being in the format you’ve requested.

Answer:

 

 

 

 

 

 

 

 

 

For instructor use.

Total Correct:                        _______________________

Percent:                                  _______________________

Grade:                                    _______________________