ini_set('max_execution_time', 180); //3 minutes
//Open php.ini file using your favourite text editor. //Look for max_execution_time directive. //max_execution_time = 30 //Set the value for max_execution_time in seconds.