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

In how many ways we can retrieve the data in the result set of mysql using php?

0 Answers  


What is putenv?

0 Answers  


Tell me what is the use of explode() function?

0 Answers  


How will you calculate days between two dates in PHP?

0 Answers  


Do you know what is the use of rand() in php?

0 Answers  






What are different types of Print Functions available in PHP?

0 Answers  


What is default session time and path in php?

0 Answers  


What is repository in php?

0 Answers  


Can you use php and javascript together?

0 Answers  


What is the functionality of the functions strstr() and stristr()?

0 Answers  


PHP can be used frontend of for backend?

3 Answers   Global Logic,


What is self in php?

0 Answers  


Categories