I have entries in my database which has an expiration date. I would like to clean the database by removing those entries once they expired once every day.
Is there anyway to execute a php script (who does this job) at a specific time, say 00:00 every day? Or is there any different approach which is better?
Thanks
Not sure what kind of server you are using, but you can configure
Cron Jobson Linux to achieve that. Most live Apache servers run on Linux anyway, so this is what you would probably need to look at.