dani33l_87 Posted June 3, 2014 Share Posted June 3, 2014 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"); Link to comment https://forums.phpfreaks.com/topic/288957-stop-a-php-script-at-a-time-interval/ Share on other sites More sharing options...
trq Posted June 3, 2014 Share Posted June 3, 2014 What is it that you are actually trying to do? 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
Archived
This topic is now archived and is closed to further replies.