you can use any of the two methods
$i = time depending upon the code you are executing. 60 sec = 1 min
1) ini_set('max_execution_time', $i);
2) You can change the max_execution_time in php.ini, like this:
max_execution_time = 360 // which is 6 min = 360
max_input_time = 120
max_input_nesting_level = 64
memory_limit = 128M