D
D
Dmitry Bolshakov2020-03-16 19:25:42
PHP
Dmitry Bolshakov, 2020-03-16 19:25:42

Execute script after certain time?

It is necessary to execute the script on the backend after the user's request after N time.
Now I made a request through the curl on the back and slip (without waiting for a response)
I think this is a fat crutch

How can I do it differently?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tmoiseenko, 2020-03-16
@tmoiseenko

use sleep() - https://www.php.net/manual/en/function.sleep.php
in the doc is very easy and detailed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question