Knowledgebase
How To Setup Your Maintenance Cron Job
In order for your script to function correctly you will need to sutup a scheduled cron job on your hosting provider control panel. How you do this will depend on your hosting providers system and which control panel you use.
It is recommended that you consult your hosting service providers help section for the full details of how to set it up.