-3
Hello
I have a while loop in PHP, I would like to run the loop while 1 time every 20 seconds, has like ?
Thank you
-3
Hello
I have a while loop in PHP, I would like to run the loop while 1 time every 20 seconds, has like ?
Thank you
0
Let this file run on a Cron and seven it to run 20 in 20 seconds
Which file ??
That your script is in a file. php is not? puts it in your server cron
-2
So solve your problem:
for ($i = 1; $i <= 20; $i++) {
sleep(20000);
}
Browser other questions tagged php
You are not signed in. Login or sign up in order to post.
tried to use
sleep()? or does not solve your problem?– rray
And the words were confusing. You want to run a loop
whileinteger every 20s or each loop iteration should be done at that time?– Woss
Then I want you to turn the loop while dai stops and wait 20 seconds from that wheel again and so on
– abduzeedo