RE: [PHP] 'Cannot send Headers' Problem!! MOre..

From: Date: Fri, 27 Jun 2003 13:26:18 +0000
Subject: RE: [PHP] 'Cannot send Headers' Problem!! MOre..
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-153129@lists.php.net to get a copy of this message
Headers can't be sent after HTML output, it's as simple as it sounds. What that means is, if you suddenly decide you want to send a Location header to redirect the browser, you can't if you outputted any HTML before the line that outputs the location, unless ofcourse your using Output Buffering. On Fri, 2003-06-27 at 09:17, PHPSpooky wrote: > Glory! > > Just to check .. I removed all HTML code from the directory.php page.. > and just left the PHP code.. and it worked fine!! > So the problem is with the HTML code.. whatever HTML is outputting.. > somehow it's taking it as the output and this generating the Warning! > But I need the HTML in the directory.php for the page.. so what do I do? > > PHPSPooky > > > > -----Original Message----- > > From: Marek Kilimajer [mailto:kilimajer@webglobe.sk] > > Sent: Friday, June 27, 2003 6:14 PM > > To: phpspooky@mjimm.com > > Cc: php-general@lists.php.net > > Subject: Re: [PHP] 'Cannot send Headers' Problem!! > > > > Simly go to mjs/directory.php, line 3, and remove any output that is > > there, mosty likely some white characters. > > -- Adam Voigt (adam@cryptocomm.com) Linux/Unix Network Administrator The Cryptocomm Group

« previous php.general (#153129) next »