RE: [PHP] Warning: Cannot modify header information - headers already sent by (output sta
| From: | Chris W. Parker | Date: | Wed, 10 Mar 2004 01:46:21 +0000 |
| Subject: | RE: [PHP] Warning: Cannot modify header information - headers already sent by (output sta | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-179970@lists.php.net to get a copy of this message | ||
Mike Mapsnac <mailto:mikerh9@hotmail.com>
on Tuesday, March 09, 2004 5:42 PM said:
> This code below gives me this error message:
> Warning: Cannot modify header information - headers already sent by
> (output started at /var/www/html/account.php:6) in
> /var/www/html/account.php on line 17
>
> The script check in the database if user exists and than redirect the
> page to the home index.php page. I know the problem exist in the
> header() .. But I don't understand why?
the error is telling you that you cannot output anything to the client
BEFORE modifying the headers, i.e. redirecting. you have a lot of output
starting on line 6 in /var/www/html/account.php.
hth,
chris.