Posted by Michael Fesser on 01/31/07 13:12
..oO(bob.chatman@gmail.com)
>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.
Additionally a Location header requires an absolute URL.
Micha
Navigation:
[Reply to this message]
|