Re: header() ???
| From: | Dave Daniels | Date: | Thu, 14 Sep 2000 02:40:34 +0000 |
| Subject: | Re: header() ??? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-16675@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "David Robley" <huntsman@hermes.nisu.flinders.edu.au>
To: "Sonia Tsui" <Stsui@villamontage.com>; <php-general@lists.php.net>
Sent: Wednesday, September 13, 2000 9:25 PM
Subject: Re: [PHP] header() ???
> On Thu, 14 Sep 2000, Sonia Tsui wrote:
> > When does header() need to be called?
>
> In a nutshell, it needs to be called before you send ANY output; even
> spaces or empty lines before it will cause errors.
This is true, but only if you specifically need to send raw HTTP header
strings, say to redirect to another URL. If you're just using a regular php
file, there's no need to call header().
---------------------------------------------------------
Conceive. Create. myClientManager.com.