Reply to Re: Redirect

Your name:

Reply:


Posted by CyberDog on 12/16/55 11:30

Per Jørgen Vigdal wrote:
> If the server that host the URL_A that I am trying to redirecting to is
> down, I want to redirect to an other server that host URL_B


Hm... how about something like this:

---snip---
$web = "http://www.myoriginalsite.com";
$backup = "http://www.mybackupsite.com";
$var = @fsockopen($web, 80, $errno, $errstr, 2);
if ($var) { header("Location: ". $web) } else { header("Location: ".
$backup) }
---snip---

[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

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