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:

Linsey
6 hours ago
Wait, isn't the correct answer A? I thought headers_sent() returns true when you've already sent headers.
upvoted 0 times
...
Edna
4 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
5 days ago
I agree with Audrie, because output buffering allows headers to be set after content is echoed.
upvoted 0 times
...
Audrie
6 days ago
I think the answer is B) Output buffering is enabled.
upvoted 0 times
...
Stephanie
6 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