By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,581 Members | 1,975 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,581 IT Pros & Developers. It's quick & easy.

How to solve header - error -PHP

100+
P: 268
Hai Friends
While running my application i got this error. How to solve thsi error.
Plesae send me any idea.


PHP Warning: Cannot modify header information - headers already sent by (output started at /home/mixpublic_html/includes/common.php:244) in /home/mix/public_html/MiX/program/include/main.inc on line 673
Thanks
Vssp
Aug 21 '06 #1
Share this Question
Share on Google+
3 Replies


sashi
Expert 100+
P: 1,754
Hi VSSP,

This error usually looks something like:

Cannot add header information - headers already sent by (output started at /some/path/to/path.php:1)

There are two main times you can see this error:

1. In the first case, this error is caused by blank lines or white space after the closing ?> in the file specified (or before the opening <?php); path.php, in this case. Edit the file in a regular text editor and remove any white space or blank lines after the closing, or before the opening, PHP tag.

2. If this error appears in addition to another error, then it likely exists simply because the other error is present. The fact that the other error occurred can cause this error to appear. Once the other error is eliminated, this error will usually disappear as well.

take care my fren.. :)
Aug 21 '06 #2

100+
P: 268
Thanks sashi ,

I fixed the issue .

Thanks
Vssp
Aug 22 '06 #3

P: 1
Hi,
I have a similar problem. Basically, I have a main.php which sets up a toolbar and calls in other pages (like- case: something: include(something.php);break;)...this is basically so that I can have the toolbar in one location, so that I can change it in only that place instead of every single page. So I have some php in the beginning to make sure the user is signed in. Then I have the html. Included in the html is the 'include' feature php (this way the pages are called under the toolbar). The problem is, most of the pages being called are php pages. So, when I have a php page that has a "header:" in it, it comes up with the error. When I moved the "case/include" php in the main.php to above the html, everything worked fine. Now it just looks stupid, with the toolbar underneath it. I am sorry for the complicated story, but I was hoping that somebody would have a suggestion (maybe an easier way to store the toolbar in one location.) Thanks for any and all help.
Oct 2 '06 #4

Post your reply

Sign in to post your reply or Sign up for a free account.