Misc Flashcards
For the Mail functions to be available, PHP must have…
…access to the sendmail binary on your system during compile time.
What’s a good rule of thumb for remembering the parameter order of PHP functions?
Array function parameters are ordered as “needle, haystack” whereas String functions are the opposite, so “haystack, needle”.
How can you access all of the request headers directly?
getallheaders()
How can you mix XML and PHP?
In order to embed
What should you use to hash password?
PHP’s native password hashing API, or the crypt() function.
What is the suggested algorithm to use when hashing passwords?
Blowfish.
How should you create salts?
password_hash() will create a random salt if one isn’t provided, and this is generally the easiest and most secure approach.