0

I am new one to PHP and I created the sample PHP project.

When I uploaded to live server it shows a warning:

Warning: Cannot modify header information

I don't know what I did wrong please give any suggestion to solve this

else {
    header("location:home.php");
    exit();
}
fejese
  • 4,601
  • 4
  • 29
  • 36
Sathish
  • 2,440
  • 1
  • 11
  • 27

1 Answers1

1

You started some kind of output before sending the headers. It could be a BOM or an empty line in an included file with a closing PHP tag.

fejese
  • 4,601
  • 4
  • 29
  • 36