Re: Using 'header' as redirect

From: Date: Tue, 30 May 2006 17:31:38 +0000
Subject: Re: Using 'header' as redirect
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-237097@lists.php.net to get a copy of this message
As you can see, by the time that index.php includes the subpage, it has already outputted HTML. According to using the header() function, you are not allowed to output any HTML *before* using header(). However, I am doing this and it is redirecting fine.
You can also always use the old tried and true: <META http-equiv="REFRESH" content="$lagTime; URL=$redirectPage"> That should redirect regardless of whether any HTML has already been sent to the browser. thnx, Chris

« previous php.general (#237097) next »