when you will get the message/error "headers already sent"?
Answer Posted / suren
if u print any message on the browser using echo statement
or any html tags before using the "session_start()" like
statements in the scripts.
if u want to overcome that problem
simply write "ob_start();" at the very starting of script
and "ob_end_flush();" at the end.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How can we display the output directly to the browser?
What is the use of mysqli_real_escape_string() function?
A process can run only in the background. State Whether True or False?
How to invoke a user function?
Do csrf tokens expire?
What is purpose of @ in Php?
how to track no of users logged in?
Do you know what is the differences between $a != $B and $a !== $B?
What is helper function?
How to get ip address of a server in php?
What is the difference between apache and tomcat?
What is difference between post and put in rest?
What is echo in html?
How a variable is declared in php?
When is a conditional statement ended with endif?