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
How do you check if an arraylist is empty?
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?
Do csrf tokens expire?
Explain Type juggling?
What is difference between print_r and echo in php?
Which function would you use to merge two arrays in php?
How to fix "headers already sent" error in php
What is the best way to test the strpos() return value in php?
Write a program using while loop in php?
Does php have multiple inheritance?
When to use single quotes, double quotes, and backticks?
What are static variables in php?
How to define a user function?
Is php session id unique?
What is the purpose of the '.myd' file extension? What do thes file contain?