Misc Flashcards

1
Q

For the Mail functions to be available, PHP must have…

A

…access to the sendmail binary on your system during compile time.

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

What’s a good rule of thumb for remembering the parameter order of PHP functions?

A

Array function parameters are ordered as “needle, haystack” whereas String functions are the opposite, so “haystack, needle”.

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

How can you access all of the request headers directly?

A

getallheaders()

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

How can you mix XML and PHP?

A

In order to embed

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

What should you use to hash password?

A

PHP’s native password hashing API, or the crypt() function.

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

What is the suggested algorithm to use when hashing passwords?

A

Blowfish.

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

How should you create salts?

A

password_hash() will create a random salt if one isn’t provided, and this is generally the easiest and most secure approach.

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