1

I can't get...

<?php
   header( "Refresh: 5; URL=http://www.mywebsite.com" );
?>

...working in Internet Explorer (damn you!).

It works great in Chrome and if I use...

header("Location: http://www.mywebsite.com");

...it works in both, but I get no delay.

j08691
  • 197,815
  • 30
  • 248
  • 265
Oskar Persson
  • 8,085
  • 14
  • 56
  • 117

1 Answers1

4

Try including it as a meta tag, or reloading via JavaScript.

Meta tag:

<meta http-equiv="refresh" content="5;URL='http://example.com/'">

Javascript:

window.onload = new function() {
  setTimeout(function() {
    location.reload();
  }, 5000);
};
Oliver Spryn
  • 16,146
  • 33
  • 97
  • 186