I want to receive certain data from a website every 24 hours. The code should run every 24 hours and update the MySQL database. How can I accomplish this without any custom events?
Later I will use the same data to find the total difference.
totalIncrement = currentData - previousData p>
While early Data is retrieved from the MySQl database, and current data is retrieved from an external website request.
I heard about cron on linux but never tried. Can any body just give a basic idea for this? or any reliable connection?
Maybe I want to do it like this:
First, create a PHP program / file that performs the fetch task. The second execution of this PHP file every 24 hours or so ...
source share