JustinM01 Posted January 27, 2008 Share Posted January 27, 2008 OK, first off, I'm not sure whether this belongs as a PHP topic, MySQL topic, or a Linux topic...but here goes... Say I have user data stored in a MySQL database that needs to be deleted after so many days. Is there a way to do it in PHP? If not how would I go about doing it? If there is a way in PHP, would it be better to check it for deletion when the user logs in ( I know I could do this btw ), or just delete everything that needs to be deleted during a period where the website/database is under a low load? Thanks for any help. Link to comment https://forums.phpfreaks.com/topic/88011-solved-scheduled-tasks/ Share on other sites More sharing options...
ziv Posted January 27, 2008 Share Posted January 27, 2008 you can use cronjob as scheduler to run a maintenance php script. Link to comment https://forums.phpfreaks.com/topic/88011-solved-scheduled-tasks/#findComment-450326 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.