Timed in while loop

-3

Hello

I have a while loop in PHP, I would like to loop the while loop once every 20 seconds, how?

Thank you

    
asked by anonymous 06.10.2017 / 22:12

2 answers

0

Leave this file running in one Cron and seven times it to run every 20 seconds

    
10.10.2017 / 03:54
-2

So solve your problem:

for ($i = 1; $i <= 20; $i++) {
    sleep(20000);
}
    
06.10.2017 / 22:24