Jump to content


Photo

Refresh script.


  • Please log in to reply
2 replies to this topic

#1 spasm37

spasm37
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 22 May 2006 - 01:11 PM

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.

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 22 May 2006 - 02:20 PM

You might want to setup a cron job which calls update.php every 10minutes automatically in the background.

#3 semtex

semtex
  • Members
  • PipPip
  • Member
  • 11 posts

Posted 22 May 2006 - 02:59 PM

[!--quoteo(post=376020:date=May 22 2006, 01:11 PM:name=spasm37)--][div class=\'quotetop\']QUOTE(spasm37 @ May 22 2006, 01:11 PM) View Post[/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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users