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
Why php is sometimes called as embedded scripting language?
What is the difference between session_unregister() and session_unset()?
Can I use node js with php?
What are magic methods?
What is the function func_num_args() used for?
Does php have multiple inheritance?
How to get number of elements in an array?
Does php support function overloading?
How you can update memcached when you make changes to php?
Can a super () and this () keywords be in same constructor?
What are the differences between echo and print?
What is get and post method in php?
Explain mysql_errno()?
When is a conditional statement ended with endif?
How to send a cookie to the browser?