473,508 Members | 3,688 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to solve header - error -PHP

268 Contributor
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
3 2312
sashi
1,754 Recognized Expert Top Contributor
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
vssp
268 Contributor
Thanks sashi ,

I fixed the issue .

Thanks
Vssp
Aug 22 '06 #3
clevoy
1 New Member
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

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

Similar topics

9
1811
by: David. E. Goble | last post by:
Arrrh! some buttons work while others don't, but I can't see why. I have tried comparing the files that do work, with the ones that don't. But to no help. The funny thing is the parts that work...
0
3910
by: Lokkju | last post by:
I am pretty much lost here - I am trying to create a managed c++ wrapper for this dll, so that I can use it from c#/vb.net, however, it does not conform to any standard style of coding I have seen....
0
886
by: Klaus Jensen | last post by:
Hi! I hope someone can help me with this challenge, which really bugs me... If this is the wrong forum, please point me to a better one, as I have not been able to find a better group for...
2
1694
by: DCC700 | last post by:
VS 2005 Converted Header causing error when publishing After converting from Visual Studio 2003 to 2005, I have had several issues with a header that is used throughout the project. The...
4
3600
by: Torben Laursen | last post by:
I have tryed to use the cli switch on my C++ code It is a large C++ project compiled to a dll that I call from a number of different interfaces C++, VBA and C# However when I try to compile...
16
2096
by: Hooyoo | last post by:
Following are similar codes of my project: At first I define two classes in two files: //ClassA.h #pragma once #include "ClassB.h" class ClassA { public: ClassA(void){};
5
2697
by: mickey22 | last post by:
Hi, I am getting some errors in building my project I tried to build a C++ file say abc.cpp and I have put the all the directories to include necessary library files and header files..But I...
0
1620
by: anupamak | last post by:
hello, I created a win32 project(precompiled headers, console application). This was created to create a service( for which i used SERVICE_TABLE_ENTRY, SERVICE_STATUS, SERVICE_STATUS_HANDLE,...
2
1562
by: Tedros.G | last post by:
Okay this is a slightly tricky one for us newbies, butI'm guessing it'll be breeze for ou experts! Problem: You recieve a xml message which conforms to a common schema. Everything is great and...
1
24109
by: Shalako | last post by:
I check my error log and see these entries: malformed header from script. Bad header= Missing gauge reports are ind: padata.pl /perl/pema/padata.pl did not send an HTTP header malformed...
0
7228
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7332
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7393
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7058
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3206
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3191
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1565
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.