dani33l_87 Posted June 3, 2014 Share Posted June 3, 2014 (edited) HI, I was trying do add a function to my script to stop each 10 seconds, using max_execution_time. Apparently is not working and most probably from the php.ini file, that I can t change because I want for the others script to run normally. How can I write a function inside a php file to stop everything after 10 seconds. Or how can I make a script to stop after 100 processed items and start again after 30 seconds. I need to stop this file somehow. $processedItems++; e("{$processedIItems} of {$buffer->totalItems} (".sprintf("%.2f", $processedItems/$buffer->totalItems*100)."%)\r"); Edited June 3, 2014 by dani33l_87 Quote Link to comment https://forums.phpfreaks.com/topic/288957-stop-a-php-script-at-a-time-interval/ Share on other sites More sharing options...
Solution trq Posted June 3, 2014 Solution Share Posted June 3, 2014 What is it that you are actually trying to do? Quote Link to comment https://forums.phpfreaks.com/topic/288957-stop-a-php-script-at-a-time-interval/#findComment-1481744 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.