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

How can we extract string 'techinterviews.com' from a string 'http://www.techinterviews.com' using regular expression in PHP?

4 Answers  


Is it difficult to learn php?

0 Answers  


What are php applications?

0 Answers  


What is the correct line to use within the php.ini file, to specify that 128mb would be the maximum amount of memory that a script may use?

0 Answers  


How to get useful error messages in php?

0 Answers  






List out different arguments in PHP header function?

4 Answers  


Tell me how is it possible to know the number of rows returned in result set?

0 Answers  


How can we get ip address of a client in php?

0 Answers  


How to Pass JSON Data in a URL using CURL in PHP?

0 Answers  


Tell me what library is used for pdf in php?

0 Answers  


What is the difference between implode() and explode() in php?

0 Answers  


What is MIME?

1 Answers  


Categories