R
R
ReactiveSnaile2020-02-13 21:00:07
PHP
ReactiveSnaile, 2020-02-13 21:00:07

How to execute php script taking into account time?

It is necessary to send notifications from php at a certain time. The time is set by the user, stored in a mysql table. Rather than follow this, using Cron to bypass is somehow expensive or something. What is used in such cases?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2020-02-13
@ReactiveSnaile

Usually, crons are used, they perform a check every minute and if the time set by the user has come, they send a notification.
Another option is to keep running some kind of daemon/script that will also check and send a notification.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question