RE: [PHP] redirect

From: Date: Wed, 29 Oct 2003 19:24:48 +0000
Subject: RE: [PHP] redirect
Groups: php.general 
Request: Send a blank email to php-general+get-168045@lists.php.net to get a copy of this message
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/

« previous php.general (#168045) next »