Re: Redirects in PHP
| From: | Zak Johnson | Date: | Fri, 13 Jun 2003 17:00:14 +0000 |
| Subject: | Re: Redirects in PHP | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151378@lists.php.net to get a copy of this message | ||
On 2003-06-13 10:54-0600, Kevin Stone wrote:
> Carl, you can avoid these issues by using output buffering allowing you to
> call header() whever you want in your script.
This will not solve the OP's problem; the header will still be output
first, and the client will be immediately redirected. I am curious
though; why is everyone suggesting to use JavaScript when the following
in the <head> section of the HTML document will work just as well?
<meta http-equiv="refresh"
content="3;URL=http://example.com/new-page.html" />
Am I missing something?
-Zak