S
S
saniii2018-02-13 19:19:23
PHP
saniii, 2018-02-13 19:19:23

How to sum up a daily total, in parallel with another function in php?

Good evening. Tell me how to implement, there is a script that performs the same type of task, with an interval (launched via cron). At the end of the day at 00:00 sums up and enters everything in the database for detailed statistics. But the problem is how to organize it so that it sums up at this time. It only came to my mind to write a separate script and create 1 more task in cron, but in my opinion this is not comme il faut. There was also an idea to shove it into the main script, and just constantly check the time, an error is also possible, because the main script can be executed at this time. So I think what other variations can there be, and are there any?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question