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 csrf token and why it is required?
Tell me how do I check if a given variable is empty?
What is the current stable version of php? What advance thing in php7?
Where is php code written?
Who is the father of php and what is the current version of php and mysql?
What is regular expression in php?
Why is used in php?
What is the difference between require_once and require in php?
What is form action php?
what is constructor
How To Get the Uploaded File Information in the Receiving Script?
How to join multiple strings into a single string?
What are string functions?
Which function you can use in php to open a file for reading or writing or for both?
discuss the issue of software theft in ghana and how it has affected the economy