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
What are the 3 scope levels available in php and how would you define them?
What is the sign to start variables in PHP?
Can you use php and javascript together?
What is the use of post in php?
Do you know how to declare an array in php?
What is the difference between file_get_contents() and file_put_contents() in php?
How can php and javascript interact?
What is the use of array_count_values() in php?
What is escape data in php?
How the web server interprets php and interacts with the client?
Why do we use sessions in php?
How can I make a script that can be bilingual (supports english, german)?
What are the different components used in php for formatting?
How can we calculate the similarity between two strings?
What is php constructor?