Jump to content

Archived

This topic is now archived and is closed to further replies.

spasm37

Refresh script.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
You might want to setup a cron job which calls update.php every 10minutes automatically in the background.

Share this post


Link to post
Share on other sites
[!--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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.