php 7 set max_execution_time in script code example Example: max_execution_time php ini_set ( 'max_execution_time', 1200); //1200 is time in secondss