nerdexam
Zend

200-530 · Question #431

You run the following PHP script: <?php $a = gethostbyaddr($_SERVER['REMOTE_ADDR']); echo $a; ?> What will be the output of the script?

The correct answer is C. It will print the host name of the Internet host. See the full explanation below for the reasoning.

Question

You run the following PHP script: <?php $a = gethostbyaddr($_SERVER['REMOTE_ADDR']); echo $a; ?> What will be the output of the script?

Options

  • AIt will print the DNS resource records associated with the local Web server.
  • BIt will print the standard host name for the local Web server.
  • CIt will print the host name of the Internet host.
  • DIt will print the list of header information sent.

How the community answered

(38 responses)
  • A
    11% (4)
  • B
    3% (1)
  • C
    71% (27)
  • D
    16% (6)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice