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:[EMAIL PROTECTED]
> > Sent: Friday, June 27, 2003 6:14 PM
> > To: [EMAIL PROTECTED]
> > Cc: [EMAIL PROTECTED]
> > 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 ([EMAIL PROTECTED])
Linux/Unix Network Administrator
The Cryptocomm Group


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to