Page 1 of 1

Update

Posted: Tue Sep 24, 2002 7:54 pm
by Silver_Eclipse
does anyone know how to make a window refresh in a set amount of time after it loads?

Posted: Tue Sep 24, 2002 9:47 pm
by hob_goblin
<meta> tags, google it.

Posted: Tue Sep 24, 2002 9:57 pm
by Silver_Eclipse
well i was actually looking for a way to do it with php heh

Posted: Tue Sep 24, 2002 10:05 pm
by mydimension
since php is not run on the client side you can't use it to force a refresh on the users browser. you could however use php to quickly modify the refresh rate:

Code: Select all

&lt;?php
$refreshValue = 30; //seconds
?&gt;

&lt;meta http-equiv="REFRESH" content="&lt;?php echo $refreshValue; ?&gt;" /&gt;

Posted: Wed Sep 25, 2002 1:15 am
by Takuma

Code: Select all

<meta http-equiv="Refresh" content="SECONDS;FILENAME">
That's the META way or you could use Javascript.

Something like

Code: Select all

function refresh_page() &#123;
  location.href="FILENAME";
&#125;
setTimeout("refresh_page()",TIMEINMILLISCONDS);

Posted: Wed Sep 25, 2002 4:43 pm
by hob_goblin

Code: Select all

<?
sleep('10');
header("Location: http://www.foo.bar");
?>