Redirecting help
Posted: Thu Jul 05, 2007 6:21 am
feyd | Please use
As you can see what it does is if one site is not available go to the other site(something like a software router)
What I want to do is when the first site(main server) is not available, to prompt the user that he is being redirected and then redirect him to site number 2(backup server)
with other words I want the same thing, but with an alert.
I tried everything i found on the net, but i keep getting errors.
Is what I want possible?
Thanks in advanced!
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi all. Quick question
I am currently using the following code:Code: Select all
<?php
if( $something ){
Header("Location: somewhere.php");
} else {
Header("Location: somewhere1.php");
}
?>As you can see what it does is if one site is not available go to the other site(something like a software router)
What I want to do is when the first site(main server) is not available, to prompt the user that he is being redirected and then redirect him to site number 2(backup server)
with other words I want the same thing, but with an alert.
I tried everything i found on the net, but i keep getting errors.
Is what I want possible?
Thanks in advanced!
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]