Re: "Headers already sent" error message

From: Date: Tue, 27 Aug 2002 04:06:51 +0000
Subject: Re: "Headers already sent" error message
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-15526@lists.php.net to get a copy of this message
Hi, Try adding ob_start() as the first line of your script. This will turn on Output Buffering for that script alone. -- ========================================== The most successful method of programming is to begin a program as simply as possible, test it, and then add to the program until it performs the required job." -- PDP8 handbook, Pg 9-64 Our contact numbers have changed! Phone: +91(44) 819 -1334, -1336, -1337, -1338, 819 3335 Fax: +91(44) 819 2339 Deepak Kumar Vasudevan, Software Engineer CS Software Solutions Pvt. Ltd. 425 Pantheon Road, Egmore, Chennai 600 008, INDIA URL: www.cssolutionsinc.com ========================================== "Tracker1" <tracker1@theroughnecks.net> wrote in message news:3D66E2AB.407.P_WINDOW@theroughnecks.net... > turn buffering on in your php.ini file... > > Odds are the "logic" is sending some text to the page, before > you want to add the header information. > > -- > ======================================================================= > Michael J. Ryan - tracker1 at theroughnecks dot com > Roughneck BBS: http://www.theroughnecks.net telnet://theroughnecks.net > ======================================================================= > Y!: aztracker1 - aim: azTracker1 - icq: 4935386 - msn: see email > One program for aim/icq/yahoo/msn/irc - http://www.trillian.cc/ > > > "R.S. Herhuth" <ronherhuth@pop.mindspring.com> wrote in message > 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 > --- Synchronet NewsLink v1.00 Beta > * Roughneck BBS - www.theroughnecks.net - telnet://theroughnecks.net

« previous php.windows (#15526) next »