How to Workaround the PHP Time Limit Setting to Execute Long Tasks without Having to Change that PHP Setting - PHP Time Limit Manager package blog

Recommend this page to a friend!
  All package blogs All package blogs   PHP Time Limit Manager PHP Time Limit Manager   Blog PHP Time Limit Manager package blog   RSS 1.0 feed RSS 2.0 feed   Blog How to Workaround the...  
  Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  

Author:

Updated on: 2020-12-11

Posted on: 2020-12-11

Package: PHP Time Limit Manager

PHP provides a feature that is used to limit the time that a script can run.

This is useful for instance to prevent that bugs may cause excessive load on the server due to scripts that execute tasks that take too long to finish.

Sometimes it is better to split the tasks in multiple executions of the same PHP script to avoid that each execution exceeds the PHP execution time limit, which by default is 30 seconds.

This class can help determining when a script that runs a long task is close to exceed the PHP execution time limit.

This way, PHP applications can pause the execution of each task and redirect the Web page access that runs that long task, so the next request handled by the same PHP script can resume the execution of that long task where it was paused.


 



About the PHP Time Limit Manager Package

The package PHP Time Limit Manager is one of the few PHP packages that was considered notable recently because it does something that is worth paying attention.

The basic purpose is: Check if the PHP execution time limit was reached

Here follows in more detail what it does:

This class was used to check if the PHP execution time limit was reached.

It can take note of the current time when a class object is created.

The class can also check later if the time that passed since the script was started was less than a given limit, as long as that limit value is lower that the time limit set in the max_execution_time option of php.ini PHP configuration file.

Conclusion

The PHP Time Limit Manager can be downloaded from download page or be installed using the PHP Composer tool following instructions in the Composer install instructions page.

This package was considered notable for implementing its benefits in a way that is worth noticing.

Notable PHP packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.

If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package as well nice prizes.

One nice prize that many PHP developers want and you may like is the PHP elePHPant mascot plush.




You need to be a registered user or login to post a comment

Login Immediately with your account on:

FacebookGmail
HotmailStackOverflow
GitHubYahoo


Comments:

No comments were submitted yet.



  Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  
  All package blogs All package blogs   PHP Time Limit Manager PHP Time Limit Manager   Blog PHP Time Limit Manager package blog   RSS 1.0 feed RSS 2.0 feed   Blog How to Workaround the...  

For more information send a message to info at phpclasses dot org.