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
1 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
18 days ago
C) The client supports local buffering
upvoted 0 times
...
Tatum
1 months ago
B) Output buffering is enabled
upvoted 0 times
...
Markus
1 months ago
A) headers_sent() returns true
upvoted 0 times
...
...
Joanna
2 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
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
...
Myong
1 months ago
B) Output buffering is enabled
upvoted 0 times
...
Lavonna
1 months ago
A) headers_sent() returns true
upvoted 0 times
...
...
Herman
2 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
13 days ago
That makes sense. I'll have to double check my notes on that.
upvoted 0 times
...
Emilio
15 days ago
I think it's B) Output buffering is enabled
upvoted 0 times
...
Gail
16 days ago
B) Output buffering is enabled
upvoted 0 times
...
Tracey
17 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
1 months ago
That's right. It's important to check if headers have been sent before trying to set them.
upvoted 0 times
...
Colby
2 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
Evelynn
13 days ago
It's a good practice to prevent any header-related issues.
upvoted 0 times
...
Tamar
19 days ago
I always make sure to enable output buffering when working with PHP.
upvoted 0 times
...
Chantell
1 months ago
Yes, you're right. Output buffering is necessary in this case.
upvoted 0 times
...
Gilberto
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
...
...

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