Php, wait 5 seconds before executing an action -



Php, wait 5 seconds before executing an action -

i have .php script utilize creating list of products. on shared hosting, can't lot of queries otherwise blank page.

this how utilize script now:

script.php?start=0&end=500&indexoffile=0 ->> create product0.txt file first 500 products

script.php?start=501&end=1000&indexoffile=1 ->> product1.txt file 500 products

script.php?start=1001&end=1500&indexoffile=2 ->> product2.txt file lastly 500 products

how can modify script create these files automatically, don't have alter each time link manually?

i click button this: create product0.txt file first 500 products wait 5 seconds create product1.txt file with 500 products wait 5 seconds create product2.txt file lastly 500 products

use:

sleep(number_of_seconds);

php

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -