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
4 months ago
I agree, output buffering saves the day!
upvoted 0 times
...
Charolette
4 months ago
Wait, can you really set headers after echoing? Sounds off.
upvoted 0 times
...
Timothy
4 months ago
Definitely B! That's how it works.
upvoted 0 times
...
Clement
5 months ago
I thought headers couldn't be sent after output?
upvoted 0 times
...
Rosita
5 months ago
Output buffering is the way to go!
upvoted 0 times
...
Vallie
5 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
5 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
5 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
6 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
6 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
6 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
6 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
6 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
6 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
11 months 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
10 months ago
C) The client supports local buffering
upvoted 0 times
...
Tatum
10 months ago
B) Output buffering is enabled
upvoted 0 times
...
Markus
10 months ago
A) headers_sent() returns true
upvoted 0 times
...
...
Joanna
11 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
10 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
11 months ago
B) Output buffering is enabled
upvoted 0 times
...
Lavonna
11 months ago
A) headers_sent() returns true
upvoted 0 times
...
...
Herman
11 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
Bette
10 months ago
That makes sense. I'll have to double check my notes on that.
upvoted 0 times
...
Emilio
10 months ago
I think it's B) Output buffering is enabled
upvoted 0 times
...
Gail
10 months ago
B) Output buffering is enabled
upvoted 0 times
...
Tracey
10 months ago
A) headers_sent() returns true
upvoted 0 times
...
...
Linsey
11 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
11 months ago
That's right. It's important to check if headers have been sent before trying to set them.
upvoted 0 times
...
Colby
11 months ago
Yes, you are correct. headers_sent() returns true if headers have already been sent.
upvoted 0 times
...
...
Edna
11 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
12 months ago
I agree with Audrie, because output buffering allows headers to be set after content is echoed.
upvoted 0 times
...
Audrie
12 months ago
I think the answer is B) Output buffering is enabled.
upvoted 0 times
...
Stephanie
12 months ago
I think it's B. Output buffering needs to be enabled to set headers after content has been echoed.
upvoted 0 times
Evelynn
10 months ago
It's a good practice to prevent any header-related issues.
upvoted 0 times
...
Tamar
10 months ago
I always make sure to enable output buffering when working with PHP.
upvoted 0 times
...
Chantell
11 months ago
Yes, you're right. Output buffering is necessary in this case.
upvoted 0 times
...
Gilberto
11 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