I wanna stop executing loop after a selected time. Means when looping it will try to execute an argument and take a long time then it will finish working and go to next argument. such as :
for ($i=2 ; $i <= 100 ; $i++)
Here, suppose it will loop 3,4,5,6,7,8,9,10 and in 11 it will take a long time to execute. So i just wanna stop it after ( i.e 10 seconds ) and take next option i mean 12,13,14... etc.
So, how can i do this. I set up this set_time_limit(10);
, but it is not working here.