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

How do you check if an arraylist is empty?

719


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?

782


Do csrf tokens expire?

695


Explain Type juggling?

761


What is difference between print_r and echo in php?

696


Which function would you use to merge two arrays in php?

769


How to fix "headers already sent" error in php

743


What is the best way to test the strpos() return value in php?

757


Write a program using while loop in php?

753


Does php have multiple inheritance?

753


When to use single quotes, double quotes, and backticks?

746


What are static variables in php?

740


How to define a user function?

787


Is php session id unique?

726


What is the purpose of the '.myd' file extension? What do thes file contain?

752