Robert Elsdon Posted May 5, 2008 Share Posted May 5, 2008 Refreshes my page only once after 30 seconds? is there any script what does this So: quanity of reload: 1 time: 30 seconds Please post the script in here thanks! Link to comment https://forums.phpfreaks.com/topic/104202-i-need-a-php-or-html-script-that/ Share on other sites More sharing options...
947740 Posted May 5, 2008 Share Posted May 5, 2008 You could just use javascript. That is not PHP or HTML, however. Link to comment https://forums.phpfreaks.com/topic/104202-i-need-a-php-or-html-script-that/#findComment-533442 Share on other sites More sharing options...
Robert Elsdon Posted May 5, 2008 Author Share Posted May 5, 2008 Can you get me the code please? Link to comment https://forums.phpfreaks.com/topic/104202-i-need-a-php-or-html-script-that/#findComment-533444 Share on other sites More sharing options...
revraz Posted May 5, 2008 Share Posted May 5, 2008 Or use HTML? Still not related to PHP though. Link to comment https://forums.phpfreaks.com/topic/104202-i-need-a-php-or-html-script-that/#findComment-533445 Share on other sites More sharing options...
947740 Posted May 5, 2008 Share Posted May 5, 2008 Look up setTimeout() in javascript. msdn2.microsoft.com/en-us/library/ms536753.aspx Link to comment https://forums.phpfreaks.com/topic/104202-i-need-a-php-or-html-script-that/#findComment-533450 Share on other sites More sharing options...
kts Posted May 5, 2008 Share Posted May 5, 2008 Just google what you want, its very common and easy to find. Link to comment https://forums.phpfreaks.com/topic/104202-i-need-a-php-or-html-script-that/#findComment-533452 Share on other sites More sharing options...
rhodesa Posted May 5, 2008 Share Posted May 5, 2008 All those are options on how to refresh the page. But you need PHP to keep track on if it's been refreshed... You can try this: <?php session_start(); if(empty($_SESSION['refreshed'])){ $refresh = '<meta http-equiv="refresh" content="30;url='.$_SERVER['REQUEST_URI'].'"/>'; $_SESSION['refreshed'] = true; }else{ $_SESSION['refreshed'] = null; $refresh = ''; } ?> <html> <head> <?php echo $refresh;?> ..rest of code here... Link to comment https://forums.phpfreaks.com/topic/104202-i-need-a-php-or-html-script-that/#findComment-533458 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.