RE: [PEAR] QFC - Headers already sent

From: Date: Sun, 09 Nov 2003 15:28:36 +0000
Subject: RE: [PEAR] QFC - Headers already sent
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8836@lists.php.net to get a copy of this message
Hi Barry, > -----Original Message----- > From: Barry Steele [mailto:barry@hpfm.biz] > > I've been working on a reporting environment using QFC on my > LAN and all seemed great but when I uploaded the new code to > our test server envrionment I am getting "Cannot add header > information - headers sent by (output started by > blah//head.php) in /usr/share/HTML/QuickForm/Action/Jump.php > on line 53 > > The most worring thing is that this happens on one machine > but not the other. > > 'head.php' is exactly what it sounds like, a header for the page. > > Just as an aside I don't use 'jump' anywhere in the form. > hpfm I too noticed the same odd behaviour when moving some code to a new server! I found out that I was displaying my header code before calling the QFC run() method. Put your code which writes to the browser AFTER this and you will always be safe :-) Regards, Mike C. ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com ________________________________________________________________________

« previous php.pear.general (#8836) next »