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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who is the father of php?

869


What is the difference between for and foreach loop in php?

867


What are the encryption functions available in PHP?

848


What is binary safe function in php?

838


Is salary fixed or variable cost?

758


What is variable and data type?

769


Which is true about the singleton design pattern?

744


What are the file upload settings in configuration file?

774


Is php an object or array?

732


What is input sanitization in php?

760


What is use of header() function in php? What the limitation of header()?

746


How to create a session? How to remove data from a session?

770


How to create database connection and query in php?

826


What is a static variable in php?

811


What is array filter in php?

770