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 |
How to get the http request in php?
How does session work in php?
Tell us why did you choose this particular career path?
How to convert a json string to an array in php?
Does PHP 5 support exceptions? State Whether True or False?
What are include() and require() functions?
How is session data stored?
How send email using php?
Why do we create an instance of a class in php?
How can we find the number of rows in a result set using PHP?
What is $_session in php?
Which is better get or post method?