Re: redirection question
- From: Erwin Moller <since_humans_read_this_I_am_spammed_too_much@xxxxxxxxxxxxxxxx>
- Date: Wed, 31 Jan 2007 14:50:49 +0100
Michael Fesser wrote:
.oO(bob.chatman@xxxxxxxxx)
Heres an all purposes function. You will run into an issue with
headers if you use any printing before you send the header information
(same with cookies and the session too), this function will send the
request as a JS redirect if the headers have already been sent.
How ugly. The "headers already sent" problem can easily be solved
without using unreliable client-side scripting, either be thinking over
the structure of the code or by using output buffering.
Totally true: ugly solution.
And besides that, not all clients have JS enabled.
Additionally a Location header requires an absolute URL.
Erm...
I think that requirement was dropped some time ago.
And all browsers I have ever seen support the relative URL.
Not tested on Lynx 0.8 beta. ;-)
Regards,
Erwin Moller
Micha
.
- Follow-Ups:
- Re: redirection question
- From: John Dunlop
- Re: redirection question
- From: Michael Fesser
- Re: redirection question
- References:
- redirection question
- From: Gunnar G
- Re: redirection question
- From: Krustov
- Re: redirection question
- From: GAMEchief
- Re: redirection question
- From: bob.chatman@xxxxxxxxx
- Re: redirection question
- From: Michael Fesser
- redirection question
- Prev by Date: Re: mod_php or fastcgi for heavy loaded server?
- Next by Date: Re: redirection question
- Previous by thread: Re: redirection question
- Next by thread: Re: redirection question
- Index(es):