Re: redirect without using header
| From: | Cece) Szabolcs | Date: | Wed, 13 Nov 2002 14:34:03 +0000 |
| Subject: | Re: redirect without using header | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124221@lists.php.net to get a copy of this message | ||
Start your code with ob_start()
It fires up an output buffer, does not output (and headers)
until ob_end_flush() called.
Put ob_end_flush() after all, before last ?>
Your code might looks as follows:
<?php
ob_start();
echo whatever;
header whatever;
ob_end_flush();
?>
=============================================================
Heilig (Cece) Szabolcs - cece@php.net - http://www.phphost.hu
=============================================================