spasm37 Posted May 22, 2006 Share Posted May 22, 2006 I'm trying to script an internal auto refresh. I have information on my site that is gathered from another server, but will only update if I go to the "update.php" file directly. And if I keep the window open, I can just click refresh and then it'll update again. Is there a way for me to not have to keep clicking refresh so it'll automatically do it every 10 min or something. This is a 24/7 statistics script, and I don't want to have to go back and forth multiple times a day so people are getting the latest factual information. Quote Link to comment https://forums.phpfreaks.com/topic/10179-refresh-script/ Share on other sites More sharing options...
wildteen88 Posted May 22, 2006 Share Posted May 22, 2006 You might want to setup a cron job which calls update.php every 10minutes automatically in the background. Quote Link to comment https://forums.phpfreaks.com/topic/10179-refresh-script/#findComment-37949 Share on other sites More sharing options...
semtex Posted May 22, 2006 Share Posted May 22, 2006 [!--quoteo(post=376020:date=May 22 2006, 01:11 PM:name=spasm37)--][div class=\'quotetop\']QUOTE(spasm37 @ May 22 2006, 01:11 PM) [snapback]376020[/snapback][/div][div class=\'quotemain\'][!--quotec--]I'm trying to script an internal auto refresh. I have information on my site that is gathered from another server, but will only update if I go to the "update.php" file directly. And if I keep the window open, I can just click refresh and then it'll update again. Is there a way for me to not have to keep clicking refresh so it'll automatically do it every 10 min or something. This is a 24/7 statistics script, and I don't want to have to go back and forth multiple times a day so people are getting the latest factual information.[/quote]Why don't you include that update.php file in the header of your site?So, everytime a visitor visits your site, he will automatically have the latest updates. Quote Link to comment https://forums.phpfreaks.com/topic/10179-refresh-script/#findComment-37962 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.