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

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -