Re: How to ASP style Response.Redirect

From: Date: Tue, 03 Oct 2000 01:13:23 +0000
Subject: Re: How to ASP style Response.Redirect
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-18339@lists.php.net to get a copy of this message
If you want to perform a header redirect after output of html you'll need to use the output buffering capabilities of PHP. Look in the manual under Output Buffering. Charles ----- Original Message ----- Sent: Monday, October 02, 2000 6:04 PM Subject: [PHP] How to ASP style Response.Redirect Is there a way to do an ASP style response.redirect from within a PHP script. I know I can use header("Location: somepage.html"); but it gives the error headers have already been sent unless I put the above line at the beginning of the page. PHP seems pretty cool I'm surprised I can't find a way just to do a redirect as my script is running. Thanks, Ian

« previous php.general (#18339) next »