Thursday, June 21, 2012

How to increase PHPs execution time for processing large set of records?

1. In php.ini file change the below line values it will change the maximum execution time.

max_execution_time 30

2. To increase the execution time runtime we can use the ini_set() function.
e.g.
ini_set('max_execution_time' '-1'); - it sets maximum execution time to infinity.

No comments: