Vidyalelo
PHP · Q12

HTML Forms Handling

Programming · PHP · question 12

Q12

Which of the following variables does PHP use to authenticate a user? 1. _SERVER[‘PHP_AUTH_USER’]. 2. _SERVER[‘PHP_AUTH_USERS’]. 3. _SERVER[‘PHP_AUTH_PU’]. 4. _SERVER[‘PHP_AUTH_PW’].

A.
1 and 2
B.
2 and 4
C.
1 and 4
Answer
D.
2 and 3

Answer: Option C

Solution

Answer: Option C
Solution:
_SERVER[‘PHP_AUTH_PW’] store the username and password values, respectively.