increase max execution time for specific function code example
Example: php code to increase maximum execution time
ini_set('max_execution_time', '300'); //300 seconds = 5 minutes
ini_set('max_execution_time', '0'); // for infinite time of execution