Home > Code Snippets > Annoying php error related to headers

Annoying php error related to headers

Cannot modify header information – headers already sent by (output started at /path/to/the/php/file.php:line) in /path/to/the/php/file.php on line newline

Okay the normal case would be to check the file thouroghly and make sure there is nothing that is outputted at the specified line number. But what if the line is pointing to the first line in the current file, and there is nothing visible, well the culprit may be a windows based editing software which converted the php file into UTF-8.

So the file encoding may destroy the php script. Changin the encoding back to ANSI would clear the problem.

Categories: Code Snippets Tags:
  1. No comments yet.
  1. No trackbacks yet.

eighty five + = eighty nine