Lecture 8 - ServerSideScripting III Flashcards Preview

Web-Centric > Lecture 8 - ServerSideScripting III > Flashcards

Flashcards in Lecture 8 - ServerSideScripting III Deck (10)
Loading flashcards...
1

Why use objects instead of just functions?

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

Applies an approach that appears in most programming languages.

2

PHP templates are based on what architecture pattern?

model-view-controller

3

What are three form element attributes?

Action
Method
Enctype

4

What are the input controls of a form?

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

5

Name four variables belonging to the super global variables group?

$_GET, $_POST, $_REQUEST, $_SERVER

6

What does PHP_SELF do?

Holds information on the current php file being accessed

7

Where can super globals be accessed?

Anywhere

8

What might ini_set() be used for?

to see errors in your code

9

By Default, is display_errors on or off?

Off

10

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

htmlspecialchars()

htmlentities()

strip_tags()