Portal Home > Knowledgebase > General > PHP Warning: Header Already Sent


PHP Warning: Header Already Sent




Help, I am getting a php warning error similar to the below:

PHP Warning: Cannot modify header information - headers already sent in /home/user/public_html/filepath/filename.php

This happens when there is some sort of whitespace in the file. Check the mentioned php filename (in error message) for whitespace before the lines and remove
the whitespace, usually a blank line.

Typically, this will happen in a configuration file.

Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
MySQL Tips (Views: 1355)
php exec (Views: 1322)
.htaccess tutorials (Views: 2946)
Webmin (Views: 1282)