why header() gives the error like header already sent in php
please
explain in brief
Answer Posted / sasmitamohanta
Generally it gives error when u print or echo some content
before header() or setcookie() methods.
To avoid the error just put the print below header();
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is "echo" in php?
What are the advantages of triggers in php?
Explain about PHP filter and why it should be used?
What difference between require() and require_once()?
What is $_session in php?
Explain difference between urlencode and urldecode?
What are session variables in php?
What is cookies php?
What is use of header() function in php? What the limitation of header()?
How to randomly retrieve a value from an array?
How stop the execution of a php scrip?
How to get a total number of rows available in the table?
How to get the http request in php?
What are php parameters?
What is the best way to avoid email sent through php getting into the spam folder?