Timed code execution loop - Javascript?

Soldato
Joined
6 Jun 2011
Posts
2,739
Hi guys,

I am trying to plan the best way of coding a PHP file. Basically I have a function that I want to run for a certain period of time and then repeat again with different parameters in a continuous loop. What would be the best way of doing this?

Thanks :)
 
Soldato
OP
Joined
6 Jun 2011
Posts
2,739
Sorry I probably didn't make myself that clear.

Basically I want to have one PHP file which then uses a function in another file. I want to run the function with one set of parameters for say 2 minutes then after this define the function again with different parameters and run this for say 2 minutes.

Thanks :)
 
Back
Top Bottom