PHP

PHP

User Authentication has 10 Questions

How many predefined variables does PHP use to authenticate a user?

1
2
3
4
Which of the following variables does PHP use to authenticate a user? i) $_SERVER['PHP_AUTH_USER'] ii) $_SERVER['PHP_AUTH_USERS'] iii) $_SERVER['PHP_AUTH_PU'] iv) $_SERVER['PHP_AUTH_PW']

i) and ii)
ii) and iv)
i) and iv)
ii) and iii)
Which of the following PHP function is commonly used when handling authentication via PHP? i) header() ii) footer() iii) inset() iv) isset()

i) and iv)
ii) and iv)
ii) and iii)
i) and iii)
Which function is used to verify whether a variable contains a value?

header()
footer()
inset()
isset()
Which of the following are types of PHP authentication implementation methodologies? i) Hard-coding a login pair directly into the script ii) File-based authentication iii) Data-based authentication iv) PEAR'S HTTP authentication

ii) and iii)
i) and iv)
ii), iii) and iv)
All of the mentioned
In which authentication method does changing the username or password can be done only by entering the code and making the manual adjustment.

Hard-coding a login pair directly into the script
File-based authentication
Data-based authentication
PEAR'S HTTP authentication
The authenticationFile.txt, the file which stores username and password should be stored ___ the server document root.

Inside
Outside
Within
None of the above
Which function is used to split a string into a series of substrings, with each string boundary is determined by a specific separator?

break()
divide()
explode()
md5()
In which of the following situations does file-based authentication become inconvenient. i) small list ii) large number of user iii) users are being regularly added iv) static authentication

i) and iv)
i) and iii)
ii) and iii)
ii) and iv)
Which is the most powerful authentication method among the four?

Hard-coding a login pair directly into the script
File-based authentication
Data-based authentication
PEAR'S HTTP authentication