when you will get the message/error "headers already sent"?
Answer Posted / dhiraj
when we are using the session variable..and want to start
our session.. we use session_start(); in the very first
line.
anything occur before this line, even a single space we get
the headers already sent error.
To overcome this problem, we can use ob_start(); at the
very first line and ob_end_flush(); at the end of the
script..
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is mysql_fetch_array?
What are the string function in php?
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?
Is php faster than nodejs?
what is the use of include_once in php?
What's the output of the ucwords function in this example?
What is print_r?
Which is faster for or foreach?
How To Get the Uploaded File Information in the Receiving Script?
What is final in php?
What is the use of strpos in php?
Which php framework is fastest?
What are the data types in php?
What is the empty function?
What is preg_match?