V
V
voltd gand2019-04-01 13:34:20
PHP
voltd gand, 2019-04-01 13:34:20

How to execute the same script after some period of time in php?

For example, every 15 seconds we print ok.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
irishmann, 2019-04-01
@vladimir_volohov

To have the user in the browser? No way. We need javascript ajax, which will pull the php script every 15 seconds.
If you need php to perform some task, for example, clear a folder every hour, send emails every 24 hours, etc. without user intervention, it is possible. cron.

V
Vladimir Borutkin, 2019-04-01
@Atanvar

cron

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question