0

I've been working on this code to get data from a website and bring it back to my page so that I can use it. I've got that and I have another script to create an image from the line I got from the site so I'm good so far.

Now, I want this image to update every so often (let's say every three hours for example). Meaning, I need my first script to go back to the site and get the contents again and I need my second script to find the line and update.

Is there a way I can make a script that calls those two and then waits the designated time and then repeats? As I understand it, this is how you call the other two scripts, but how do I make this script do it again after the three hours?

Any help appreciated.

<?php
include('script1.php');
include('script2.php');
// something here
?>
2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by DemonGal711
0

Well, that should make this easier. Just gotta go figure out how to do that now. XD

Thanks.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.