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 200-710 Exam - 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:

0/2000 characters
Fletcher
5 months ago
I agree, output buffering saves the day!
upvoted 0 times
...
Charolette
6 months ago
Wait, can you really set headers after echoing? Sounds off.
upvoted 0 times
...
Timothy
6 months ago
Definitely B! That's how it works.
upvoted 0 times
...
Clement
6 months ago
I thought headers couldn't be sent after output?
upvoted 0 times
...
Rosita
6 months ago
Output buffering is the way to go!
upvoted 0 times
...
Vallie
7 months ago
I’m a bit confused about the other options, but I don’t recall anything about local buffering being relevant. It seems like a trick option to me.
upvoted 0 times
...
Nikita
7 months ago
I think we practiced a question like this before, and it was about enabling output buffering. So, I’m leaning towards option B as well.
upvoted 0 times
...
Margot
7 months ago
I’m not entirely sure, but I feel like headers_sent() returning true means you can't set headers anymore. So that can't be the answer, right?
upvoted 0 times
...
Minna
7 months ago
I remember something about output buffering being important for sending headers after content. I think it might be option B?
upvoted 0 times
...
Chau
7 months ago
The key here is to remember that headers need to be sent before any output is generated. If there's already content echoed, you'll need to use output buffering to capture that output and then send the headers. B seems like the right answer.
upvoted 0 times
...
Martin
7 months ago
I'm a bit confused by this question. I'm not sure I fully understand the relationship between headers, output, and buffering. I'll need to do some more research on this topic.
upvoted 0 times
...
Ahmed
7 months ago
I'm pretty confident on this one. I believe the answer is B - output buffering needs to be enabled in order to set headers after output has started.
upvoted 0 times
...
Candida
7 months ago
Okay, let's see... I think it has something to do with output buffering, but I'm not sure of the exact details. I'll need to review that concept.
upvoted 0 times
...
Mabel
7 months ago
Hmm, this looks like a tricky one. I'll need to think carefully about the conditions that allow setting headers after output has already started.
upvoted 0 times
...
Danilo
1 year 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
11 months ago
C) The client supports local buffering
upvoted 0 times
...
Tatum
12 months ago
B) Output buffering is enabled
upvoted 0 times
...
Markus
12 months ago
A) headers_sent() returns true
upvoted 0 times
...
...
Joanna
1 year 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
12 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
...
Myong
1 year ago
B) Output buffering is enabled
upvoted 0 times
...
Lavonna
1 year ago
A) headers_sent() returns true
upvoted 0 times
...
...
Herman
1 year 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
Bette
11 months ago
That makes sense. I'll have to double check my notes on that.
upvoted 0 times
...
Emilio
11 months ago
I think it's B) Output buffering is enabled
upvoted 0 times
...
Gail
11 months ago
B) Output buffering is enabled
upvoted 0 times
...
Tracey
11 months ago
A) headers_sent() returns true
upvoted 0 times
...
...
Linsey
1 year ago
Wait, isn't the correct answer A? I thought headers_sent() returns true when you've already sent headers.
upvoted 0 times
Bernardine
1 year ago
That's right. It's important to check if headers have been sent before trying to set them.
upvoted 0 times
...
Colby
1 year ago
Yes, you are correct. headers_sent() returns true if headers have already been sent.
upvoted 0 times
...
...
Edna
1 year 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
1 year ago
I agree with Audrie, because output buffering allows headers to be set after content is echoed.
upvoted 0 times
...
Audrie
1 year ago
I think the answer is B) Output buffering is enabled.
upvoted 0 times
...
Stephanie
1 year ago
I think it's B. Output buffering needs to be enabled to set headers after content has been echoed.
upvoted 0 times
Evelynn
11 months ago
It's a good practice to prevent any header-related issues.
upvoted 0 times
...
Tamar
11 months ago
I always make sure to enable output buffering when working with PHP.
upvoted 0 times
...
Chantell
1 year ago
Yes, you're right. Output buffering is necessary in this case.
upvoted 0 times
...
Gilberto
1 year 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