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:

Danilo
27 days ago
I'm leaning towards B, but I'll double-check the PHP documentation just to be sure. Can't afford to get this one wrong!
upvoted 0 times
Madonna
3 days ago
C) The client supports local buffering
upvoted 0 times
...
Tatum
16 days ago
B) Output buffering is enabled
upvoted 0 times
...
Markus
19 days ago
A) headers_sent() returns true
upvoted 0 times
...
...
Joanna
1 months ago
Haha, I bet the webserver using 'preemptive mode' is just a made-up answer choice to confuse us. Nice try, exam writers!
upvoted 0 times
Jamal
19 days ago
Haha, I bet the webserver using 'preemptive mode' is just a made-up answer choice to confuse us. Nice try, exam writers!
upvoted 0 times
...
Myong
21 days ago
B) Output buffering is enabled
upvoted 0 times
...
Lavonna
23 days ago
A) headers_sent() returns true
upvoted 0 times
...
...
Herman
1 months 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
Gail
1 days ago
B) Output buffering is enabled
upvoted 0 times
...
Tracey
2 days ago
A) headers_sent() returns true
upvoted 0 times
...
...
Linsey
2 months ago
Wait, isn't the correct answer A? I thought headers_sent() returns true when you've already sent headers.
upvoted 0 times
Bernardine
23 days ago
That's right. It's important to check if headers have been sent before trying to set them.
upvoted 0 times
...
Colby
1 months ago
Yes, you are correct. headers_sent() returns true if headers have already been sent.
upvoted 0 times
...
...
Edna
2 months 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
2 months ago
I agree with Audrie, because output buffering allows headers to be set after content is echoed.
upvoted 0 times
...
Audrie
2 months ago
I think the answer is B) Output buffering is enabled.
upvoted 0 times
...
Stephanie
2 months ago
I think it's B. Output buffering needs to be enabled to set headers after content has been echoed.
upvoted 0 times
Tamar
4 days ago
I always make sure to enable output buffering when working with PHP.
upvoted 0 times
...
Chantell
21 days ago
Yes, you're right. Output buffering is necessary in this case.
upvoted 0 times
...
Gilberto
1 months 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