|  | Posted by Jerry Stuckle on 06/11/54 11:43 
Dave wrote:> Hi All,
 >
 > Can anyone suggest a reliable solution to php redirect?:
 >
 > header("Location: $redir_url");
 > if the above times out in $timeout seconds
 > header("Location: $alt_redir_url");
 >
 > Many thanks,
 >
 > Dave
 >
 >
 
 Hi, Dave,
 
 Sorry, you can't do it.
 
 When you send the redirect, the request goes to the browser.  The browser is now
 responsible for fetching the new page.  Your script is no longer "in the loop".
 
 Maybe you could do it with javascript - I haven't tried.  But that would have
 its own problems (i.e. user has disabled javascript).
 
 --
 ==================
 Remove the "x" from my email address
 Jerry Stuckle
 JDS Computer Training Corp.
 jstucklex@attglobal.net
 ==================
  Navigation: [Reply to this message] |