Re: "Headers already sent" error message

From: Date: Tue, 10 Sep 2002 13:58:23 +0000
Subject: Re: "Headers already sent" error message
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-15745@lists.php.net to get a copy of this message
But if you are using an if (/else) statement, then you can do the following to fix it. if($...){ } exit; else { } exit; So if you would have an header in one of the two place, you can fix it like this, but then you have to use the exit-command on both places!! "R.S. Herhuth" <ronherhuth@pop.mindspring.com> schreef in bericht news:3D650DBD.E0E40043@pop.mindspring.com... > > I'm having a bit of trouble understanding why I'm getting a "Cannot add > header information; Headers already sent" error message. I have several > pages where I'm using the headers with no problems...but this single > page I keep getting the error. The only real difference is that this > page has a bunch of logic checks before it calls the header command. > > What is the cause of this error? what sort of things should I check > for? > > I'm lost, > Ron

« previous php.windows (#15745) next »