You can easily use your database to save the last execution of the script.
Each execution of a certain page you run a script that does the following :
If executed: does nothing.
If not executed: starts and updates the date last execution in database.