G
G
gomerIT2020-09-29 01:30:31
PHP
gomerIT, 2020-09-29 01:30:31

How often to run such a script with cron (PHP)?

Good day to all. The task is that the user opens a "deposit" and you need to give the user a bonus exactly in a week. How it is better to implement it? I store in the database id_user, the date the deposit was opened, the date the bonus was received. In fact, the logic has already been written, but how to do it using cron, i.e. how often to run it? Every minute?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vilinyh, 2020-09-29
@vilinyh

In this case, once a day, when changing the date. For example, 1 0 * * *

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question