when we use ob_start() function in php then the header() and
session_start() does not gives the error like header already
sent,please explain in brief

Answers were Sorted based on User's Feedback



when we use ob_start() function in php then the header() and session_start() does not gives the err..

Answer / madan

ob_start() function will turn output buffering on. While
output buffering is active no output is sent from the script
(other than headers), instead the output is stored in an
internal buffer.

Is This Answer Correct ?    19 Yes 2 No

when we use ob_start() function in php then the header() and session_start() does not gives the err..

Answer / francis

ob_start indicates that PHP has to buffer data

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More PHP Interview Questions

armstrong number by using php while number is given by the keyboard.?

0 Answers  


Tell me what is the difference between get and post?

0 Answers  


delete session variable when close browser with out logout

3 Answers  


What does $globals mean?

0 Answers  


What is the difference between mysql_connect and mysql_pconnect ? Which one is good in terms of performance ?

4 Answers  


What is http php?

0 Answers  


Which is not a php magic constant?

0 Answers  


Tell me are parent constructors called implicitly inside a class constructor?

0 Answers  


Is null or empty c#?

0 Answers  


How to submit form without a submit button.

0 Answers  


When are you supposed to use endif to end the conditional statement?

0 Answers  


How is it possible to know the number of rows returned in the result set?

0 Answers  


Categories