Re: page redirect question
| From: | Klaus Reimer | Date: | Tue, 09 Nov 2004 17:05:16 +0000 |
| Subject: | Re: page redirect question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-201627@lists.php.net to get a copy of this message | ||
Victor C. wrote:
Is there anyway to redirect php page other than using HEADER("LOCATION:URL") ? Header can only be called if nothing is written to HTML... Is there anyway around it?You can use output buffering. Then it doesn't matter where you call header(). But if you do a redirect you should clear the output buffer before doing so to prevent that the output which has been done so far is send to the browser.