Re: redirect
| From: | alain dhaene | Date: | Thu, 30 Oct 2003 07:14:08 +0000 |
| Subject: | Re: redirect | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-168119@lists.php.net to get a copy of this message | ||
it works,
thx
"Chris W. Parker" <cparker@swatgear.com> schreef in bericht
news:001BD19C96E6E64E8750D72C2EA0ECEE2B8202@ati-ex-01.ati.local...
Pablo Zorzoli <mailto:plz@aconectarse.com>
on Wednesday, October 29, 2003 11:20 AM said:
> You cannot do any echo ""; before header("location:.."); maybe that's
> the problem.
The solution would be to turn on output buffering.
<?php
ob_start();
// do your stuff
header("Location: http://www.fullurl.com/notjust/a/page.html");
exit;
?>
hth,
Chris.
p.s. Output buffering I think can have some performance issues regarding
server memory but I'm not certain about this.
--
Don't like reformatting your Outlook replies? Now there's relief!
http://home.in.tum.de/~jain/software/outlook-quotefix/