Lectures Flashcards

1
Q

Consider an input such as alert (“Exploit!”);

What can go wrong?

A

Can break pages by executing the script and by interrupting HTML syntax

By default, some browsers keep track of the previous http request and some refuse to execute JS that matches the request. Some do not.

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

Is PHP dynamically typed?

A

YES LOL

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

What does a dynamically typed entail?

A

The variables do not self-identify simply by reading the left hand side of an assignment operation.

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

PHP variables have an internal type. PHP variables can be of the types:

A

Integer — Whole Numbers

Double — Real Numbers

String — Character Strings

Boolean — True/False

Array — Multi-valued data structures

Object — Class instances

NULL — Special value to indicate no assignment

Resource — References a connection to a system external to PHP internals

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

What are values submitted through HTML forms treated as? Which type?

A

Strings

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

What are values submitted through HTML forms treated as? Which type?

A

Strings

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

Can superglobal arrays be manipulated directly?

A

Yes, though it is generally good form to copy values out of the superglobals before manipuating them.

This is for practical and code maintenance reasons more than anything.

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