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 the use of mysqli_real_escape_string() function?
What is variable give example?
Can php run on windows server?
When sessions ends?
Why json is used in php?
What are differences between PECL and PEAR?
How to remove leading and trailing spaces from user input values?
What is difference between md5 and SHA256?
How many days will it take to learn php?
Tell me is it possible to remove the html tags from data?
What is put method in php?
What are the advantages of php?
When do sessions end?
How to get no. of rows using MYSQL function?
What is the difference between static and dynamic websites?