nerdexam
Zend

200-710 · Question #80

Under what condition may HTTP headers be set from PHP if there is content echoed prior to the header function being used?

The correct answer is B. Output buffering is enabled. See the full explanation below for the reasoning.

Web Features

Question

Under what condition may HTTP headers be set from PHP if there is content echoed prior to the header function being used?

Options

  • Aheaders_sent() returns true
  • BOutput buffering is enabled
  • CThe client supports local buffering
  • DThe webserver uses preemptive mode

How the community answered

(65 responses)
  • A
    9% (6)
  • B
    82% (53)
  • C
    6% (4)
  • D
    3% (2)

Topics

#output buffering#HTTP headers#headers_sent#ob_start

Community Discussion

No community discussion yet for this question.

Full 200-710 Practice