|
Posted by Rik on 07/16/07 20:47
On Mon, 16 Jul 2007 22:33:41 +0200, <vncntj@hotmail.com> wrote:
> I keep getting:
>
> Warning: Cannot modify header information - headers already sent by
> (output started at /home/blah/public_html/site/final/login.php:17) in /
> home/blah/public_html/site/final/login.php on line 33. I went through
> and removed all of the whitespaces!
Yes, but not the HTML tags. You cannot have ANY output before sending
headers. If you output HTMl tags, and after that want to redirect, it will
not work.
Try to set up your pages less from an HTML point of view: first determine
what has to be done with PHP, without outputting anything, and only then
give the output determined by your script.
>
> <?php
> require_once('blah_class.php');
> ?>
> <html>
Here it is, the tag, so no further headers possible.
--
Rik Wasmus
Navigation:
[Reply to this message]
|