Re: clear headers desire : redirect
| From: | Cynic | Date: | Sat, 16 Dec 2000 10:51:28 +0000 |
| Subject: | Re: clear headers desire : redirect | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-30657@lists.php.net to get a copy of this message | ||
check out the ob_* (output buffering) functions.
At 07:07 16.12. 2000, Philip Olson wrote the following:
--------------------------------------------------------------
>Hi!
>
>I would love a way to do this :
>
> print 'oh my, i exist!';
>
> if (headers_set()) {
>
> headers_clear('ALL');
> }
>
> header("Location: http://www.example.com/");
> exit;
>
>
>Where headers_clear() clears headers so in a sense, use
>header("Location:...) as a redirect. Is this silly? Maybe
>a 'TRIM' option would be useful too ;-)
>
>
>Regards,
>
>Philip
>
>
>--.sig
> [ Want to write Good code? First, write Bad code. ]
>
>
>--
>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
------end of quote------
____________________________________________________________
Cynic:
A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.
cynic@mail.cz
ICQ: 2808 2505