Learn Codeigniter

How to Increase Maximum Execution Time In PHP

To Increase execution time of php script, We can use set_time_limit() or ini_set().Default execution time of php script 30 seconds.

<?php
ini_set('max_execution_time', 600);// 600 seconds = 10 minutes
?>
<?php
set_time_limit (60);// 600 seconds = 10 minutes
?>

We can set the time to unlimited value by making it to 0 value.

<?php
set_time_limit (0);// unlimited execution time
?>