Jump to content

Stop a PHP Script at a time interval


dani33l_87

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.