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

which is the best institute for php training near delhi & NCR......& what is the fee for the same....

2 Answers  


Where is php code written?

0 Answers  


Explain the difference between urlencode and urldecode?

0 Answers  


What is stdclass in php?

0 Answers  


What is the difference between php and cakephp?

0 Answers  






Is facebook still in php?

0 Answers  


Why php is better?

0 Answers  


How can I maintain the count of how many persons have hit my site?

1 Answers   MTOG, Rushmore Consultancy,


How can we create a database using PHP and mysql?

4 Answers   Rushmore Consultancy,


What is php artisan serve?

0 Answers  


How can I check if a value is already in an array?

3 Answers   Rushmore Consultancy,


What is form action php?

0 Answers  


Categories