why header() gives the error like header already sent in php
please
explain in brief
Answer / 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 |
Why is facebook still using php?
Why do we use csrf token?
Can I write php code in html file?
What is meant by PEAR in PHP?
Where can I learn php?
Explain what is the difference between for and foreach?
How does php sessions work?
Tell me how can we define a variable accessible in functions of a php script?
What is data abstraction in php?
How to find datatype of variable in php?
Why we use get in php?
Explain the difference b/w static and dynamic websites?