Answer the question
In order to leave comments, you need to log in
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
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question