This is especially common if you use. Carefully check all of your included or other php files that appear before your exit or headers.
<? echo "php here"; ?> This will cause a problem if it in an includes that comes before your headers or doctypes. Remove any non php here, file should end with "?>" not whitespace, linefeeds or characters.
Why? It is not known, on one production server this problem constantly raises my head for me (CentOs 5), but this does not happen on my dev machine (latest version of Fedora), and I have no problems.
Honestly, maybe there is something that I could find to find out why, but since the correct use says βno extra spaces or lines,β I just do it and donβt worry too much about βwhy does this happen -differently on my servers "There is so much. (The kind of message I know)
source share