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

Why do we use htaccess and where?

0 Answers  


How to check whether cookies are disbled or not in the browser ? If that is the case how do you handle the sessions ?

1 Answers  


What is the latest version of php?

0 Answers  


How do I clear my browser session?

0 Answers  


What is the different between cookies and session in php?

13 Answers  






What is echo and print in php?

0 Answers  


What is the difference between query and inquiry?

0 Answers  


What are getters and setters and why are they important?

0 Answers  


What is the difference between the functions unlink and unset?

8 Answers   Small Firm, TCS,


can we use PGP with PHP?

1 Answers  


What is exception handling in php?

0 Answers  


How do you format and output a number with leading zero's?

3 Answers  


Categories