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
?>

Recommended Answers

All 2 Replies

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

Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.