X
X
XenK2014-11-27 08:15:41
PHP
XenK, 2014-11-27 08:15:41

How to execute a script at the exact time?

It is necessary to execute the script using cron at the exact time (for example, at 14:00:00), accurate to the second. Cron does not always fall at this time. There is an idea to run another script via cron 1-2 minutes before the end, which will determine the current server time and calculate the remaining time, and then execute the necessary script. Is it possible to do this in an easier way?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FanatPHP, 2014-11-27
@FanatPHP

Given the selected tags (it would seem - what is the connection between the execution of a task on the server and requests from the browser?), I recommend mastering the basic principles of working with the database. Which are somewhat different from the principle of operation of the AKA "class magazine" linear list familiar to every student.
In the database, among other things, you can filter records by any attribute.
In particular, in order not to display some record, it is absolutely not necessary to delete it physically - it is enough just to put a condition in the request.
Try it - you will definitely like it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question