|
I have a php script that I am releasing free and I want to setup a demo of it on my website. However, I would like for the demo to reset every 4 hours.
Here is how I would prefer the reset to work. Everything will be auto deleted from the database and then the cron will access a specified .sql file to restore the database from. For example it will take the file "http://www.mywebsite.com/backup.sql"
How would I set something like this up? I have been searching for code or a script that does this and can't find anything.
|