Re: PHP Redirect in the middle of code?

From: Date: Mon, 10 Sep 2001 19:56:26 +0000
Subject: Re: PHP Redirect in the middle of code?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-66755@lists.php.net to get a copy of this message
Hi, If you put ob_start(); at the top of the page you can use header() anywhere you want. HTH, Jord On Monday 10 September 2001 10:18, you wrote: > Andrew, > > I am in a similar position witha Lasso site, which I am considering > php-ing. I need to do conditional redirects. > > George P, Edinburgh > > ----- Original Message ----- > From: "Andrew Penniman" <tech@kdpyield.com> > To: <php-general@lists.php.net> > Sent: Monday, September 10, 2001 3:37 PM > Subject: [PHP] PHP Redirect in the middle of code? > > > I am trying to figure out how to use PHP to redirect the user to a new > > location *after* processing and most likely outputting a bunch of code. > > Because this redirection would happen late in the game I can't use > > header("Location: ".$redirect_to); > > > > I come from a ColdFusion background and am used to CFAS' <cflocation> > > tag. Does PHP have an equivalent function? > > > > I am really hoping not to use JavaScript, I want this redirection to > > happen at the server and not the client. > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com -- Jordan Elver Web Developer The InternetOne UK Ltd

« previous php.general (#66755) next »