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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.