Lecture 8 - ServerSideScripting III Flashcards
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.
PHP templates are based on what architecture pattern?
model-view-controller
What are three form element attributes?
Action
Method
Enctype
What are the input controls of a form?
Name: identifier used to collect data
value: where the data for each form element is set
Name four variables belonging to the super global variables group?
$_GET, $_POST, $_REQUEST, $_SERVER
What does PHP_SELF do?
Holds information on the current php file being accessed
Where can super globals be accessed?
Anywhere
What might ini_set() be used for?
to see errors in your code
By Default, is display_errors on or off?
Off
What do we use to remove harmful code placed in html tags?
htmlspecialchars()
htmlentities()
strip_tags()