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
How to check a variable is an array or not in php?
How to find current date and time?
What is csrf token and how will you add csrf token in ajax?
What is difference between web service and api?
How can you increase the maximum execution time of a script in php?
How many types of array are there in php?
What exactly is PHP?
How can php and html interact?
What is php regular expression?
What are the advantages of object-oriented programming in php?
How do I install php?
Tell me what is needed to be able to use image function?
What are the characteristics of php variables?
What is difference between required and include in php?
What are the uses of php language?