Re: Header information ...
| From: | Philippe Saladin | Date: | Fri, 10 Jan 2003 16:27:49 +0000 |
| Subject: | Re: Header information ... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-131136@lists.php.net to get a copy of this message | ||
>"Anders mellström" <anders@glimville.se> a écrit dans le message
news: -1169903437anders@glimville.se...
>Hello. I can't get this code to work. The error message I get is that the
header could be added, cause it has allready >been sent. What shalll I do to
get it to work?
Please have a look at http://www.php.net/manual/en/function.header.php.
From online help : "Remember that header() must be called before any actual
output is sent, either by normal HTML tags, blank lines in a file, or from
PHP"
So you would test your variable $i BEFORE the <html> tag.
Regards,
Philippe