Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Zend Exam 200-710 Topic 4 Question 75 Discussion

Actual exam question for Zend's 200-710 exam
Question #: 75
Topic #: 4
[All 200-710 Questions]

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

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Herman
6 days ago
Hmm, I'm not sure. I'll have to review my notes on HTTP headers in PHP. This is a tricky one.
upvoted 0 times
...
Linsey
9 days ago
Wait, isn't the correct answer A? I thought headers_sent() returns true when you've already sent headers.
upvoted 0 times
...
Edna
13 days ago
I'm not sure, but I think headers_sent() returning true would also allow setting headers after content is echoed.
upvoted 0 times
...
Marcelle
14 days ago
I agree with Audrie, because output buffering allows headers to be set after content is echoed.
upvoted 0 times
...
Audrie
15 days ago
I think the answer is B) Output buffering is enabled.
upvoted 0 times
...
Stephanie
15 days ago
I think it's B. Output buffering needs to be enabled to set headers after content has been echoed.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77