Programming PHP "Warning: Cannot modify header information - headers already sent by" Problem in PHP
Tags:

When you run your PHP program, or login your Joomla or WordPress based website or blog, suddenly an error page shows as one of the followings:

1. Warning: Cannot modify header information - headers already sent by (output started at /xxxxxxx/xxxxxx/xxxxxxx/index.php:58) in /xxxxxx/xxxxxxxx/xxxxx/index.php on line 283

2. Warning: Cannot modify header information - headers already sent by ...xxxxxx...xxxxxx...xxxxxx...xxxxxx before or after the opening and closing PHP tags ("").

So, what was the problem? You maybe very worry, for you could not login your blog to manage your posts. The fortune is your site still can be visited. Ok, let me tell you what happened. This problem always caused by an invalid PHP file which has the blank space outside the "" mark. If the message showed already told you what file had a problem, then just open the PHP file and edit it, delete all the blank spaces outside the mark. If the error message did not hint any file name, then you have to think carefully if you have changed any PHP files in the recent time, try to find it out and modify it.

It is really a serious result and easy solution problem. Enjoy my article and remember to come back!
 


Programming - PHP