Reply to Re: redirection question

Your name:

Reply:


Posted by Erwin Moller on 01/31/07 13:50

Michael Fesser wrote:

> .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.

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация