Lecture 8 - ServerSideScripting III Flashcards

1
Q

Why use objects instead of just functions?

A

You can associate values and functions in one unit (an object)

Applies an approach that appears in most programming languages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

PHP templates are based on what architecture pattern?

A

model-view-controller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are three form element attributes?

A

Action
Method
Enctype

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the input controls of a form?

A

Name: identifier used to collect data
value: where the data for each form element is set

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Name four variables belonging to the super global variables group?

A

$_GET, $_POST, $_REQUEST, $_SERVER

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does PHP_SELF do?

A

Holds information on the current php file being accessed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Where can super globals be accessed?

A

Anywhere

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What might ini_set() be used for?

A

to see errors in your code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

By Default, is display_errors on or off?

A

Off

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What do we use to remove harmful code placed in html tags?

A

htmlspecialchars()

htmlentities()

strip_tags()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly