Zend
200-550 · Question #54
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.
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
(13 responses)- B85% (11)
- C8% (1)
- D8% (1)
Community Discussion
No community discussion yet for this question.