M
M
mrnagaron2018-03-28 19:35:11
PHP
mrnagaron, 2018-03-28 19:35:11

How to make something like a timer in PHP?

Hello, I have a table in which there is time from and to, I need the script to check when it ends. Well, for example, it's 19:30 now, and MySQL says that you have a guarantee until 19:59, and at this time 1 script will work, and when the time is up, another script will work. (For each user its own time)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Elios, 2018-03-28
@mrnagaron

On a cron task that will look at the database every minute, is it worth it to start or stop some kind of script - well, write the status to the database -running not running so as not to start again

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question