0

Hello Community,
I was wondering if it is possible to run a php file every week that checks if a user has activated there account after 7 days they will be deleted.

Please help.

Thanks in advance.

2
Contributors
4
Replies
6
Views
4 Years
Discussion Span
Last Post by joshl_1995
0

you write a script that queries your database for "if a user has activated there account after 7 days", if not "delete".

so basically, if you run the script directly, it does that - check and delete.

what you might want to do it for the script to run automatically, once a day for example. Open up cron job and you should find once a day in the "common settings".

As for the command, it should be something like this - "php /home/cashrun/public_html/joshl/check_delete_unactivated.php" - whenever the script is located.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.