RE: [PHP] Warning with Header("Location: test.php")
| From: | John W. Holmes | Date: | Tue, 26 Nov 2002 04:36:37 +0000 |
| Subject: | RE: [PHP] Warning with Header("Location: test.php") | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126043@lists.php.net to get a copy of this message | ||
> I have user Header("Location: test.php") in a php file. It is not
working,
> instead I have got a warning of the form
>
> Warning: Cannot add header information - headers already sent by
(output
> started at /var/www/html/test.php:5) in /var/www/html/test.php on line
15
header() must come before any output. You have output starting on line
5, just like the warning says...
---John Holmes...