Scripts Execution Time Limits

Putting a time limit on your PHP scripts is a very critical thing. There are times when your scripts will fail, and when they do, you’ll want to use the set_time_limit function to avoid infinite loops and database connection timeouts. The set_time_limit puts a time limit on the maximum number of seconds a script will run (the default is 30). After that time period, a fatal error is thrown.

Permanent link to this article: https://blog.openshell.in/2010/11/scripts-execution-time-limits/

Leave a Reply

Your email address will not be published.