How do I change the timeout limit for my PHP code?

If you would like to overwrite the script execution timeout limit defined in php.ini, you can do that directly from your PHP code using the following line:

// Set it to no-limit
set_time_limit(0);

Of course you can as well set it to any time limit in seconds. The default time limit is 30 seconds.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top