nerdexam
Zend

200-530 · Question #489

You want to know from which Web page a user has come to your Web site. Which of the following $_SERVER array elements will you use to accomplish the task?

The correct answer is D. $_SERVER['HTTP_REFERER']. See the full explanation below for the reasoning.

Question

You want to know from which Web page a user has come to your Web site. Which of the following $_SERVER array elements will you use to accomplish the task?

Options

  • A$_SERVER['REQUEST_URI']
  • B$_SERVER['REMOTE_ADDR']
  • C$_SERVER['QUERY_STRING']
  • D$_SERVER['HTTP_REFERER']

How the community answered

(26 responses)
  • A
    8% (2)
  • B
    12% (3)
  • C
    4% (1)
  • D
    77% (20)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice