In one of my scripts, something failed and an error was outputted, When i tried to redirect using header('Location: back.php')
, apparently the headers were already sent.
Now, how is that possible? I don't have a single HTML tag on that page, and I didn't modify the headers in any way.
I found only one thing that could explain this, PHP errors sometimes have HTML tags inside (bold, anchor, etc..) So can this be the cause of that "headers already sent error"? If so, how do i fix it?