You are here: Re: Redirect « HTML « IT news, forums, messages
Re: Redirect

Posted by Per J�rgen Vigdal on 06/14/00 11:30

Do you say that this can not be managed in html or dhtm





"Stuart" <stuart@edesign.cc> wrote in message
news:3BG8f.36657$S_1.15091@newsfe5-win.ntli.net...
> Per J�rgen Vigdal wrote:
>> I need to redirect to an alternative url if an other redirect fails.
>>
>> Here is the logic
>>
>>
>>
>> If( redirect("URL_A") != success )
>>
>> redirect("URL_B")
>
>
> Redirects don't work quite like that - they don't tend to 'look before
> they leap', so to speak.
>
> You'd have to devise some method of checking the server was up (In PHP,
> you could attempt to call fopen() on a resource on that server, and call a
> redirect based on the result.)
>
> Depends on your server configuration & language of choice, of course...
>
> --
> Stuart Brown <stuart@edesign.cc>
> http://www.edesign.cc

 

Navigation:

[Reply to this 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

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